Fix the FreeBSD port by not fuzzing the __srget() output unless it's called

directly.
This commit is contained in:
Sam Hocevar 2010-01-12 23:53:38 +00:00 committed by sam
parent 31ae813b8d
commit 66223df9e6

View File

@ -963,7 +963,8 @@ char *NEW(fgetln)(FILE *stream, size_t *len)
int fd; \ int fd; \
LOADSYM(myrefill); \ LOADSYM(myrefill); \
fd = fileno(fp); \ fd = fileno(fp); \
if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd)) \ if(!_zz_ready || !_zz_iswatched(fd) || !_zz_isactive(fd) \
|| _zz_islocked(fd)) \
return ORIG(myrefill)(fp); \ return ORIG(myrefill)(fp); \
debug_stream("before", fp); \ debug_stream("before", fp); \
pos = _zz_getpos(fd); \ pos = _zz_getpos(fd); \