How could I have forgotten about fputs?

SVN r1308 (trunk)
This commit is contained in:
Randy Heit 2008-12-07 01:50:12 +00:00
parent ef3b57fb8f
commit b90a04f3be

View file

@ -637,7 +637,7 @@ bool FConfigFile::WriteConfigFile () const
entry = section->RootEntry; entry = section->RootEntry;
if (section->Note.IsNotEmpty()) if (section->Note.IsNotEmpty())
{ {
fprintf (file, "%s", section->Note.GetChars()); fputs (section->Note.GetChars(), file);
} }
fprintf (file, "[%s]\n", section->Name); fprintf (file, "[%s]\n", section->Name);
while (entry != NULL) while (entry != NULL)
@ -646,7 +646,7 @@ bool FConfigFile::WriteConfigFile () const
entry = entry->Next; entry = entry->Next;
} }
section = section->Next; section = section->Next;
fprintf (file, "\n"); fputs ("\n", file);
} }
fclose (file); fclose (file);
return true; return true;