summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2007-10-01 21:11:38 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2007-10-01 21:11:38 +0000
commit665d65d16416cfd40fd539e14e8f07e703cabaf6 (patch)
tree287ef0779d11634fb0e9760ee7a5f9b4069ca2c3 /examples
parent21adc6b0c5358fff5028ca8117c9a79130f440f7 (diff)
downloadlibgtop-665d65d16416cfd40fd539e14e8f07e703cabaf6.tar.gz
Fixed printf format overflow.
svn path=/trunk/; revision=2668
Diffstat (limited to 'examples')
-rw-r--r--examples/procmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/procmap.c b/examples/procmap.c
index 46a3a1ea..ef762b96 100644
--- a/examples/procmap.c
+++ b/examples/procmap.c
@@ -108,10 +108,10 @@ main (int argc, char *argv [])
if (sizeof (void*) == 8)
format = "%016lx-%016lx %016lx - "
- "%02x:%02x %08lu - %4s - %s\n";
+ "%02x:%02x %08lu - %5.5s - %s\n";
else
format = "%08lx-%08lx %08lx - "
- "%02x:%02x %08lu - %4s - %s\n";
+ "%02x:%02x %08lu - %5.5s - %s\n";
fprintf (stderr, format,
(unsigned long) maps [i].start,