From 62e0cdca26433d639e04fe0e172380cd599f8f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 13 Dec 2011 03:01:16 +0000 Subject: [PATCH] amsinfo: save files with .bin extension git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31219 a1c6a512-1295-4272-9138-f99709370657 --- utils/AMS/hacking/amsinfo.c | 4 ++-- 1 file 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)