Mercurial > repos > blastem
comparison romdb.c @ 1037:5239f09bcceb
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 17 Jul 2016 23:05:53 -0700 |
parents | 219de1d64aa1 |
children | 9a74eb24e53c |
comparison
equal
deleted
inserted
replaced
1036:fc29a122f817 | 1037:5239f09bcceb |
---|---|
416 } else { | 416 } else { |
417 return strdup("UNKNOWN"); | 417 return strdup("UNKNOWN"); |
418 } | 418 } |
419 } else { | 419 } else { |
420 last++; | 420 last++; |
421 char *ret = malloc(last - (rom + TITLE_START) + 1); | 421 char *ret = malloc(last - src + 1); |
422 uint8_t *dst; | 422 uint8_t *dst; |
423 uint8_t last_was_space = 1; | 423 uint8_t last_was_space = 1; |
424 for (dst = ret; src < last; src++) | 424 for (dst = ret; src < last; src++) |
425 { | 425 { |
426 if (*src >= 0x20 && *src < 0x80) { | 426 if (*src >= 0x20 && *src < 0x80) { |