No need to increment string pointer at exit.

This commit is contained in:
carlo-bramini 2017-11-12 16:27:36 +01:00
parent 4a5648141c
commit 48941897b9

View file

@ -868,13 +868,13 @@ fluid_istream_gets (fluid_istream_t in, char* buf, int len)
if (n == 0)
{
*buf++ = 0;
*buf = 0;
return 0;
}
if (c == '\n')
{
*buf++ = 0;
*buf = 0;
return 1;
}