Changeset 406 for trunk/dll/comp.c


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

Use xfgets_bstripcr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/comp.c

    r378 r406  
    1919  13 Jul 06 SHL Use Runtime_Error
    2020  26 Jul 06 SHL Drop unreachable CN_... code
     21  29 Jul 06 SHL Use xfgets_bstripcr
    2122
    2223***********************************************************************/
     
    827828          Runtime_Error(pszSrcFile, __LINE__, "can not open %s (%d)", cmp->rightlist, errno);
    828829        else {
    829           while(!feof(fp)) {
     830          while (!feof(fp)) {
    830831            /* first get name of directory */
    831             if(!fgets(str,sizeof(str) - 1,fp))
     832            if (!xfgets_bstripcr(str,sizeof(str),fp,pszSrcFile,__LINE__))
    832833              break;            // EOF
    833             str[sizeof(str) - 1] = 0;
    834             bstrip(str);
    835834            p = str;
    836835            if(*p == '\"') {
     
    869868            lenr = strlen(cmp->rightdir) +
    870869                     (cmp->rightdir[strlen(cmp->rightdir) - 1] != '\\');
    871             while(!feof(fp)) {
    872               if(!fgets(str,sizeof(str) - 1,fp))
     870            while (!feof(fp)) {
     871              if (!xfgets_bstripcr(str,sizeof(str),fp,pszSrcFile,__LINE__))
    873872                break;
    874               str[sizeof(str) - 1] = 0;
    875               bstrip(str);
    876873              p = str;
    877874              if(*p == '\"') {
Note: See TracChangeset for help on using the changeset viewer.