diff options
Diffstat (limited to 'utils/AMS')
-rw-r--r-- | utils/AMS/hacking/amsinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/AMS/hacking/amsinfo.c b/utils/AMS/hacking/amsinfo.c index 433333ecca..9c288e771e 100644 --- a/utils/AMS/hacking/amsinfo.c +++ b/utils/AMS/hacking/amsinfo.c | |||
@@ -227,9 +227,9 @@ static void show_lib(size_t off) | |||
227 | color(BLUE); | 227 | color(BLUE); |
228 | printf("\tBASE 0x%.8x (code + 0x%x) END 0x%.8x : SIZE 0x%.8x\n",start, 0x18 + i*4, stop, stop - start); | 228 | printf("\tBASE 0x%.8x (code + 0x%x) END 0x%.8x : SIZE 0x%.8x\n",start, 0x18 + i*4, stop, stop - start); |
229 | 229 | ||
230 | char name[12+1]; | 230 | char name[12+sizeof(".bin")]; |
231 | memcpy(name,&buf[off+get32le(off)],12); | 231 | memcpy(name,&buf[off+get32le(off)],12); |
232 | name[12] = '\0'; | 232 | strcpy(&name[12], ".bin"); |
233 | 233 | ||
234 | FILE *out = fopen(name,"w"); | 234 | FILE *out = fopen(name,"w"); |
235 | if(!out) | 235 | if(!out) |