Changeset 406 for trunk/dll/command.c
- Timestamp:
- Jul 29, 2006, 10:02:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/command.c
r347 r406 12 12 06 Jun 05 SHL Drop unused code 13 13 14 Jul 06 SHL Use Runtime_Error 14 29 Jul 06 SHL Use xfgets_bstripcr 14 15 15 16 ***********************************************************************/ … … 334 335 fp = _fsopen(cl,"r",SH_DENYWR); 335 336 if(fp) { 336 while (!feof(fp)) {337 if (!fgets(title,100,fp))337 while (!feof(fp)) { 338 if (!xfgets_bstripcr(title,sizeof(title),fp,pszSrcFile,__LINE__)) 338 339 break; 339 title[34] = 0; 340 title[34] = 0; // fixme to know why chopped this way? 340 341 bstripcr(title); 341 if (!*title || *title == ';')342 if (!*title || *title == ';') 342 343 continue; 343 if(!fgets(cl,1024,fp) || 344 !fgets(flags,72,fp)) 344 if (!xfgets(cl,sizeof(cl),fp,pszSrcFile,__LINE__)) 345 345 break; /* error! */ 346 cl[1000] = 0; 346 if (!xfgets(flags,72,fp,pszSrcFile,__LINE__)) 347 break; /* error! */ 348 cl[1000] = 0; // fixme to know why chopped this way? 349 bstripcr(cl); 347 350 flags[34] = 0; 348 bstripcr(cl);349 351 bstripcr(flags); 350 352 if(!*cl) 351 353 continue; 352 354 info = xmallocz(sizeof(LINKCMDS),pszSrcFile,__LINE__); 353 if (info) {355 if (info) { 354 356 info->cl = xstrdup(cl,pszSrcFile,__LINE__); 355 357 info->title = xstrdup(title,pszSrcFile,__LINE__);
Note:
See TracChangeset
for help on using the changeset viewer.