Merge pull request #1 from l29ah/master

fixed a potential stack corruption
This commit is contained in:
forth32 2015-10-04 06:29:26 +03:00
commit a572cf546d

View File

@ -42,7 +42,7 @@ unsigned int i,j;
char ch; char ch;
for (i=0;i<len;i+=16) { for (i=0;i<len;i+=16) {
printf("%08x: ",(unsigned long)(base+i)); printf("%08lx: ",(unsigned long)(base+i));
for (j=0;j<16;j++){ for (j=0;j<16;j++){
if ((i+j) < len) printf("%02x ",buffer[i+j]&0xff); if ((i+j) < len) printf("%02x ",buffer[i+j]&0xff);
else printf(" "); else printf(" ");