Skip to content
Snippets Groups Projects
Commit 27630de4 authored by rswindell's avatar rswindell
Browse files

fgets() only reads size-1.

parent 15f81aa8
Branches
Tags
No related merge requests found
......@@ -162,7 +162,7 @@ void __fastcall TConfigWizard::FormShow(TObject *Sender)
char* p;
if(fp!=NULL) {
while(!feof(fp)) {
if(!fgets(str,sizeof(str)-1,fp))
if(!fgets(str,sizeof(str),fp))
break;
p=str;
while(*p && *p<=' ') p++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment