Skip to content

Commit 62e0cdc

Browse files
committed
amsinfo: save files with .bin extension
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31219 a1c6a512-1295-4272-9138-f99709370657
1 parent 184459f commit 62e0cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/AMS/hacking/amsinfo.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ static void show_lib(size_t off)
227227
color(BLUE);
228228
printf("\tBASE 0x%.8x (code + 0x%x) END 0x%.8x : SIZE 0x%.8x\n",start, 0x18 + i*4, stop, stop - start);
229229

230-
char name[12+1];
230+
char name[12+sizeof(".bin")];
231231
memcpy(name,&buf[off+get32le(off)],12);
232-
name[12] = '\0';
232+
strcpy(&name[12], ".bin");
233233

234234
FILE *out = fopen(name,"w");
235235
if(!out)

0 commit comments

Comments
 (0)