diff --git a/layout.c b/layout.c index d0394513874f526be88880cfbf69f36e33d12973..f71eeaa8091e591e5225765112a4d7e24a78ccb3 100644 --- a/layout.c +++ b/layout.c @@ -68,7 +68,7 @@ int read_romlayout(const char *name) (void)fclose(romlayout); return 1; } - if (2 != fscanf(romlayout, "%s %s\n", tempstr, rom_entries[num_rom_entries].name)) + if (2 != fscanf(romlayout, "%255s %255s\n", tempstr, rom_entries[num_rom_entries].name)) continue; #if 0 // fscanf does not like arbitrary comments like that :( later