amsinfo: save files with .bin extension
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31219 a1c6a512-1295-4272-9138-f99709370657
diff --git a/utils/AMS/hacking/amsinfo.c b/utils/AMS/hacking/amsinfo.c
index 433333e..9c288e7 100644
--- a/utils/AMS/hacking/amsinfo.c
+++ b/utils/AMS/hacking/amsinfo.c
@@ -227,9 +227,9 @@
color(BLUE);
printf("\tBASE 0x%.8x (code + 0x%x) END 0x%.8x : SIZE 0x%.8x\n",start, 0x18 + i*4, stop, stop - start);
- char name[12+1];
+ char name[12+sizeof(".bin")];
memcpy(name,&buf[off+get32le(off)],12);
- name[12] = '\0';
+ strcpy(&name[12], ".bin");
FILE *out = fopen(name,"w");
if(!out)