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

    r350 r404  
    1111  24 May 05 SHL Rework Win_Error usage
    1212  14 Jul 06 SHL Use Runtime_Error
     13  29 Jul 06 SHL Use xfgets
    1314
    1415***********************************************************************/
     
    188189  }
    189190  fp = fopen(s,"r");
    190   if(fp) {
    191     while(!feof(fp)) {
     191  if (fp) {
     192    while (!feof(fp)) {
    192193      strset(s,0);
    193       if(!fgets(s,1025,fp))
     194      if (!xfgets(s,1025,fp,pszSrcFile,__LINE__))
    194195        break;
    195       if(!foundstart) {
    196         if(*s == ' ' && strstr(s,startstring))
     196      if (!foundstart) {
     197        if (*s == ' ' && strstr(s,startstring))
    197198          foundstart = TRUE;
    198199      }
Note: See TracChangeset for help on using the changeset viewer.