blarg
This commit is contained in:
parent
4b038f5d37
commit
920ff9778d
|
@ -90,7 +90,8 @@ void Load()
|
||||||
while (!feof(f))
|
while (!feof(f))
|
||||||
{
|
{
|
||||||
fgets(linebuf, 1024, f);
|
fgets(linebuf, 1024, f);
|
||||||
int ret = sscanf(linebuf, "%32[A-Za-z_0-9]=%[^\t\n]", entryname, entryval);
|
int ret = sscanf(linebuf, "%31[A-Za-z_0-9]=%[^\t\n]", entryname, entryval);
|
||||||
|
entryname[31] = '\0';
|
||||||
if (ret < 2) continue;
|
if (ret < 2) continue;
|
||||||
|
|
||||||
ConfigEntry* entry = &ConfigFile[0];
|
ConfigEntry* entry = &ConfigFile[0];
|
||||||
|
|
Loading…
Reference in New Issue