mirror of
https://git.zaage.it/robert/balong-flash
synced 2024-11-04 12:00:14 +00:00
Merge pull request #1 from l29ah/master
fixed a potential stack corruption
This commit is contained in:
commit
a572cf546d
2
hdlcio.c
2
hdlcio.c
@ -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(" ");
|
||||||
|
Loading…
Reference in New Issue
Block a user