main: Don't overrun the file that's read
This commit is contained in:
committed by
Cosimo Cecchi
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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user