# HG changeset patch # User Michael Pavone # Date 1463339449 25200 # Node ID 219de1d64aa1f93d8ab4f689d6bca4d6776ab9e5 # Parent c7c573f0229e31ebe3c88bc1d329f842a3e23152 Fixed a bug in get_header_name that results in a crash if the "International Name" field is blank diff -r c7c573f0229e -r 219de1d64aa1 romdb.c --- a/romdb.c Sun May 15 12:02:56 2016 -0700 +++ b/romdb.c Sun May 15 12:10:49 2016 -0700 @@ -418,7 +418,7 @@ } } else { last++; - char *ret = malloc(last - (rom + TITLE_START) + 1); + char *ret = malloc(last - src + 1); uint8_t *dst; uint8_t last_was_space = 1; for (dst = ret; src < last; src++)