Changeset 404 for trunk/dll/remap.c
- Timestamp:
- Jul 29, 2006, 10:01:14 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/remap.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/remap.c
r353 r404 10 10 06 Aug 05 SHL Renames 11 11 22 Jul 06 SHL Check more run time errors 12 29 Jul 06 SHL Use xfgets 12 13 13 14 ***********************************************************************/ … … 15 16 #define INCL_WIN 16 17 #define INCL_DOS 17 18 18 #include <os2.h> 19 19 20 #include <stdlib.h> 20 21 #include <stdio.h> … … 23 24 #include <time.h> 24 25 #include <share.h> 26 25 27 #include "fm3dll.h" 26 28 #include "fm3dlg.h" … … 71 73 fp = xfsopen(s,"r",SH_DENYWR,pszSrcFile,__LINE__); 72 74 if (fp) { 73 while (x < MAXNUMRES && !feof(fp)) {74 if (!fgets(s,sizeof(s),fp))75 while (x < MAXNUMRES && !feof(fp)) { 76 if (!xfgets_bstripcr(s,sizeof(s),fp,pszSrcFile,__LINE__)) 75 77 break; 76 s[sizeof(s) - 1] = 0; 77 bstripcr(s); 78 if(*s && *s != ';') { 78 if (*s && *s != ';') { 79 79 info = xmalloc(sizeof(LINKRES),pszSrcFile,__LINE__); 80 80 if (info) {
Note:
See TracChangeset
for help on using the changeset viewer.
