Changeset 404 for trunk/dll/avv.c


Ignore:
Timestamp:
Jul 29, 2006, 10:01:14 PM (19 years ago)
Author:
root
Message:

Use xfgets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/avv.c

    r347 r404  
    1818  26 Jun 06 SHL rewrite_archiverbb2: include user comments
    1919  14 Jul 06 SHL Use Runtime_Error
     20  29 Jul 06 SHL Use xfgets
    2021
    2122***********************************************************************/
     
    240241      needReload = TRUE;
    241242      while (input_line_num < arcsigs_header_lines) {
    242         psz = fgets(sz, sizeof(sz), fpOld);
     243        psz = xfgets(sz, sizeof(sz), fpOld, pszSrcFile, __LINE__);
    243244        if (!psz)
    244245          break;
     
    265266        }
    266267        while (input_line_num + 1 < pat -> defn_line_num) {
    267           psz = fgets(sz, sizeof(sz), fpOld);
     268          psz = xfgets(sz, sizeof(sz), fpOld, pszSrcFile, __LINE__);
    268269          if (!psz)
    269270            break;                      // Unexpected EOF
     
    341342    if (fpOld && arcsigs_trailer_line_num) {
    342343      for (;;) {
    343         psz = fgets(sz, sizeof(sz), fpOld);
     344        psz = xfgets(sz, sizeof(sz), fpOld, pszSrcFile, __LINE__);
    344345        if (!psz)
    345346          break;
     
    590591        else {
    591592          while(!feof(fp)) {
    592             if(!fgets(s,sizeof(s),fp)) break;
     593            if (!xfgets(s, sizeof(s), fp, pszSrcFile, __LINE__))
     594              break;
    593595            stripcr(s);
    594596            WinSendDlgItemMsg(hwnd,
Note: See TracChangeset for help on using the changeset viewer.