Fixed printf format overflow.
svn path=/trunk/; revision=2668
This commit is contained in:
@@ -108,10 +108,10 @@ main (int argc, char *argv [])
|
|||||||
|
|
||||||
if (sizeof (void*) == 8)
|
if (sizeof (void*) == 8)
|
||||||
format = "%016lx-%016lx %016lx - "
|
format = "%016lx-%016lx %016lx - "
|
||||||
"%02x:%02x %08lu - %4s - %s\n";
|
"%02x:%02x %08lu - %5.5s - %s\n";
|
||||||
else
|
else
|
||||||
format = "%08lx-%08lx %08lx - "
|
format = "%08lx-%08lx %08lx - "
|
||||||
"%02x:%02x %08lu - %4s - %s\n";
|
"%02x:%02x %08lu - %5.5s - %s\n";
|
||||||
|
|
||||||
fprintf (stderr, format,
|
fprintf (stderr, format,
|
||||||
(unsigned long) maps [i].start,
|
(unsigned long) maps [i].start,
|
||||||
|
Reference in New Issue
Block a user