Changeset 401
- Timestamp:
- Jul 29, 2006, 9:53:05 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/tools.c ¶
r329 r401 12 12 23 May 05 SHL Use QWL_USER 13 13 22 Jul 06 SHL Check more run time errors 14 29 Jul 06 SHL Use xfgets, xfgets_bstripcr 14 15 15 16 ***********************************************************************/ … … 63 64 if (fp) { 64 65 while(x < 50 && !feof(fp)) { 65 if(! fgets(s,CCHMAXPATH + 2,fp))66 if(!xfgets_bstripcr(s,CCHMAXPATH + 2,fp,pszSrcFile,__LINE__)) 66 67 break; 67 s[CCHMAXPATH - 1] = 0;68 bstripcr(s);69 68 if(*s && *s != ';') { 70 69 quicktool[x] = xstrdup(s,pszSrcFile,__LINE__); … … 102 101 103 102 FILE *fp; 104 CHAR help[8 1],text[81],flagstr[81],idstr[81],*fname;103 CHAR help[80],text[80],flagstr[80],idstr[80],*fname; 105 104 TOOL *info; 106 105 … … 126 125 while(!feof(fp)) { 127 126 do { 128 if(! fgets(help,80,fp))127 if(!xfgets(help,sizeof(help),fp,pszSrcFile,__LINE__)) 129 128 break; 130 129 } while(*help == ';' && !feof(fp)); 131 130 stripcr(help); 132 if(! fgets(text,80,fp))131 if(!xfgets(text,sizeof(text),fp,pszSrcFile,__LINE__)) 133 132 break; 134 133 stripcr(text); 135 if(! fgets(flagstr,80,fp))136 break; 137 if(! fgets(idstr,80,fp))134 if(!xfgets(flagstr,sizeof(flagstr),fp,pszSrcFile,__LINE__)) 135 break; 136 if(!xfgets(idstr,sizeof(idstr),fp,pszSrcFile,__LINE__)) 138 137 break; 139 138 if(!(USHORT)atoi(idstr))
Note:
See TracChangeset
for help on using the changeset viewer.