forked from AuroraMiddleware/gtk
main: Don't overrun the file that's read
This commit is contained in:
parent
075b259321
commit
6461105429
@ -655,7 +655,7 @@ load_file (const gchar *filename)
|
||||
|
||||
start = end;
|
||||
|
||||
while (*p != '\n') p++;
|
||||
while (*p && *p != '\n') p++;
|
||||
|
||||
state++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user