Changeset 2553 for zzuf/trunk/src


Ignore:
Timestamp:
Jul 16, 2008, 11:37:12 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • lib-stream.c: try to make the filbuf() implementation portable across HP-UX and OpenSolaris?.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/lib-stream.c

    r2552 r2553  
    145145#if defined HAVE_REFILL_STDIO /* Fuzz fp if we have __srefill() */
    146146#   define FOPEN_FUZZ() \
    147     _zz_fuzz(fd, ret->__ptr, ret->__cnt)
     147    _zz_fuzz(fd, ret->FP_PTR, ret->FP_CNT)
    148148#else
    149149#   define FOPEN_FUZZ()
     
    795795    {
    796796        if(newpos != -1)
    797             _zz_setpos(fd, newpos - fp->__cnt - 1);
    798         _zz_fuzz(fd, fp->__ptr - 1, fp->__cnt + 1);
    799         ret = (uint8_t)fp->__ptr[-1];
    800         _zz_addpos(fd, fp->__cnt + 1);
     797            _zz_setpos(fd, newpos - fp->FP_CNT - 1);
     798        _zz_fuzz(fd, fp->FP_PTR - 1, fp->FP_CNT + 1);
     799        ret = (uint8_t)fp->FP_PTR[-1];
     800        _zz_addpos(fd, fp->FP_CNT + 1);
    801801    }
    802802
Note: See TracChangeset for help on using the changeset viewer.