summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-13 03:01:16 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-13 03:01:16 +0000
commit62e0cdca26433d639e04fe0e172380cd599f8f5f (patch)
tree405797c152daf501aa0c08714e16884a0c6f7bdc
parent184459fa54f1d3f1a6c13c6e729fa116689f225c (diff)
downloadrockbox-62e0cdca26433d639e04fe0e172380cd599f8f5f.tar.gz
rockbox-62e0cdca26433d639e04fe0e172380cd599f8f5f.tar.bz2
rockbox-62e0cdca26433d639e04fe0e172380cd599f8f5f.zip
amsinfo: save files with .bin extension
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31219 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--utils/AMS/hacking/amsinfo.c4
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)
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)