Changeset 2571 for zzuf/trunk


Ignore:
Timestamp:
Jul 20, 2008, 3:29:45 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • lib-stream.c: fix a bug in the OS X srefill implementation.
File:
1 edited

Legend:

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

    r2570 r2571  
    781781            } \
    782782            else \
    783                 ret = ((uint8_t *)fp->FILE_PTR)[0]; \
     783            { \
     784                if(newpos != -1) \
     785                    _zz_setpos(fd, newpos - fp->FILE_CNT); \
     786            } \
    784787            _zz_fuzz(fd, fp->FILE_PTR, fp->FILE_CNT); \
    785788            _zz_addpos(fd, fp->FILE_CNT); \
Note: See TracChangeset for help on using the changeset viewer.