Changeset 404 for trunk/dll/sysinfo.c
- Timestamp:
- Jul 29, 2006, 10:01:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/sysinfo.c
r375 r404 13 13 01 Aug 04 SHL RunRmview: avoid buffer overflow 14 14 26 Jul 06 SHL Report open errors 15 29 Jul 06 SHL Use xfgets 15 16 16 17 ***********************************************************************/ … … 73 74 fp = xfopen("$RMVIEW.#$#","r",pszSrcFile,__LINE__); 74 75 if (fp) { 75 fgets(s,2048,fp);76 fgets(s,2048,fp);76 xfgets(s,sizeof(s),fp,pszSrcFile,__LINE__); 77 xfgets(s,sizeof(s),fp,pszSrcFile,__LINE__); 77 78 if(!feof(fp) && WinIsWindow(thab,hwnd)) 78 79 WinSendDlgItemMsg(hwnd,SYS_LISTBOX,LM_INSERTITEM, … … 81 82 while(!feof(fp)) { 82 83 strset(s,0); 83 if(! fgets(s,2048,fp))84 if(!xfgets(s,sizeof(s),fp,pszSrcFile,__LINE__)) 84 85 break; 85 s[2047] = 0;86 86 stripcr(s); 87 87 rstrip(s);
Note:
See TracChangeset
for help on using the changeset viewer.