Changeset 404 for trunk/dll/init.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/init.c

    r339 r404  
    1818  13 Jul 06 SHL Use Runtime_Error
    1919  13 Jul 06 SHL Sync with current style
     20  29 Jul 06 SHL Use xfgets
    2021
    2122***********************************************************************/
     
    109110    }
    110111    *filename = (CHAR)nm + '@';
    111     fp = xfsopen(filename, "r", SH_DENYNO,pszSrcFile,__LINE__);
     112    fp = xfsopen(filename, "r", SH_DENYNO, pszSrcFile, __LINE__);
    112113    if (fp)
    113114    {
    114       while (!feof(fp))
    115       {
    116         if (!fgets(input, 8192, fp))
     115      while (!feof(fp)) {
     116        if (!xfgets(input, sizeof(input), fp,pszSrcFile, __LINE__))
    117117          break;
    118         input[8191] = 0;
    119118        lstrip(input);
    120119        if (!strnicmp(input, "SWAPPATH", 8))
Note: See TracChangeset for help on using the changeset viewer.