Changeset 405 for trunk/dll/assoc.c
- Timestamp:
- Jul 29, 2006, 10:01:37 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/assoc.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/assoc.c
r342 r405 9 9 01 Aug 04 SHL Rework lstrip/rstrip usage 10 10 14 Jul 06 SHL Use Runtime_Error 11 29 Jul 06 SHL Use xfgets, xfgets_bstripcr 11 12 12 13 ***********************************************************************/ … … 138 139 if (fp) { 139 140 while(!feof(fp)) { 140 if (!fgets(mask,CCHMAXPATH + 24,fp))141 if (!xfgets(mask,sizeof(mask),fp,pszSrcFile,__LINE__)) // fixme why +24? 141 142 break; 142 143 mask[CCHMAXPATH] = 0; … … 144 145 if(!*mask || *mask == ';') 145 146 continue; 146 if(! fgets(cl,1024,fp) ||147 ! fgets(sig,CCHMAXPATH + 24,fp) ||148 ! fgets(offset,72,fp) ||149 ! fgets(flags,72,fp))147 if(!xfgets(cl,sizeof(cl),fp,pszSrcFile,__LINE__) || 148 !xfgets(sig,CCHMAXPATH + 24,fp,pszSrcFile,__LINE__) || 149 !xfgets(offset,sizeof(offset),fp,pszSrcFile,__LINE__) || 150 !xfgets(flags,sizeof(flags),fp,pszSrcFile,__LINE__)) 150 151 break; /* error! */ 151 152 cl[1000] = 0; 153 bstripcr(cl); 152 154 sig[CCHMAXPATH] = 0; 155 bstripcr(sig); 153 156 offset[34] = 0; 157 bstripcr(offset); 154 158 flags[34] = 0; 155 bstripcr(cl);156 bstripcr(sig);157 bstripcr(offset);158 159 bstripcr(flags); 159 if (!*cl)160 if (!*cl) 160 161 continue; 161 162 info = xmallocz(sizeof(LINKASSOC),pszSrcFile,__LINE__);
Note:
See TracChangeset
for help on using the changeset viewer.
