main: Don't overrun the file that's read

This commit is contained in:
Benjamin Otte 2012-05-23 19:39:47 +02:00 committed by Cosimo Cecchi
parent 075b259321
commit 6461105429

View File

@ -655,7 +655,7 @@ load_file (const gchar *filename)
start = end;
while (*p != '\n') p++;
while (*p && *p != '\n') p++;
state++;
}