* lib-stream.c: fix a bug in the OS X __srefill implementation.

This commit is contained in:
Sam Hocevar
2008-07-20 01:29:45 +00:00
committed by sam
parent ab3289d7d9
commit b409dcecfd

View File

@@ -780,7 +780,10 @@ char *NEW(fgetln)(FILE *stream, size_t *len)
_zz_addpos(fd, 1); \
} \
else \
ret = ((uint8_t *)fp->FILE_PTR)[0]; \
{ \
if(newpos != -1) \
_zz_setpos(fd, newpos - fp->FILE_CNT); \
} \
_zz_fuzz(fd, fp->FILE_PTR, fp->FILE_CNT); \
_zz_addpos(fd, fp->FILE_CNT); \
} \