local: Fix truncating file

This commit is contained in:
Pali Rohár committed 2014-06-19 13:27:34 +02:00
1 parent 193e01aa66
commit 46750e99d0
1 file changed
+4
+4
View File
@@ -457,6 +457,10 @@ int local_dump_image(enum image_type image, const char * file) {
if ( addr[nlen-1] != 0xFF )
break;
for ( ; nlen > 0; --nlen )
if ( addr[nlen-1] != 0x00 )
break;
if ( image == IMAGE_MMC )
align = 8;
else