* Another fucked commit... synchronise config.h and lib-stream.c.

This commit is contained in:
Sam Hocevar
2008-07-16 21:41:27 +00:00
committed by sam
parent f9f17a64a3
commit 6c23cd7e29
+5 -5
View File
@@ -144,7 +144,7 @@ int (*ORIG(__filbuf)) (FILE *fp);
/* Our function wrappers */
#if defined HAVE_REFILL_STDIO /* Fuzz fp if we have __srefill() */
# define FOPEN_FUZZ() \
_zz_fuzz(fd, ret->FP_PTR, ret->FP_CNT)
_zz_fuzz(fd, ret->FILE_PTR, ret->FILE_CNT)
#else
# define FOPEN_FUZZ()
#endif
@@ -794,10 +794,10 @@ int NEW(__filbuf)(FILE *fp)
if(ret != EOF)
{
if(newpos != -1)
_zz_setpos(fd, newpos - fp->FP_CNT - 1);
_zz_fuzz(fd, fp->FP_PTR - 1, fp->FP_CNT + 1);
ret = (uint8_t)fp->FP_PTR[-1];
_zz_addpos(fd, fp->FP_CNT + 1);
_zz_setpos(fd, newpos - fp->FILE_CNT - 1);
_zz_fuzz(fd, fp->FILE_PTR - 1, fp->FILE_CNT + 1);
ret = (uint8_t)fp->FILE_PTR[-1];
_zz_addpos(fd, fp->FILE_CNT + 1);
}
if(!_zz_islocked(fd))