Changeset 1609 for zzuf


Ignore:
Timestamp:
Jan 7, 2007, 5:27:59 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Fixed srefill()/lseek() conflict issue.
File:
1 edited

Legend:

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

    r1608 r1609  
    567567int __srefill(FILE *fp)
    568568{
    569     off_t oldpos, newpos;
    570     int ret, fd;
     569    off_t newpos;
     570    int ret, fd, tmp;
    571571
    572572    if(!_zz_ready)
     
    576576        return __srefill_orig(fp);
    577577
    578     oldpos = lseek(fd, 0, SEEK_CUR);
    579578    ret = __srefill_orig(fp);
     579    tmp = _zz_disabled;
     580    _zz_disabled = 1;
    580581    newpos = lseek(fd, 0, SEEK_CUR);
     582    _zz_disabled = tmp;
    581583    if(ret != EOF)
    582584    {
Note: See TracChangeset for help on using the changeset viewer.