summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2013-09-11 21:52:49 +1000
committerCraig Small <csmall@enc.com.au>2013-09-11 21:52:49 +1000
commitc9378261370bbaf8d0798c9c2ea949763b34dc61 (patch)
tree230e2ef33aff7b637d8b390ed828fb3ef6561ac4
parentdd6f24dbed12e95235b3df49e550b5039e74e6d8 (diff)
parent5a39544b215c99e93ba435aa4a671b0192329c08 (diff)
downloadprocps-ng-c9378261370bbaf8d0798c9c2ea949763b34dc61.tar.gz
Fix off-by-one by pmap
Merge request 15
-rw-r--r--pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pmap.c b/pmap.c
index 95f365f..8f111a0 100644
--- a/pmap.c
+++ b/pmap.c
@@ -591,7 +591,7 @@ static int one_proc(proc_t * p)
unsigned long long file_offset, inode;
unsigned dev_major, dev_minor;
unsigned long long smap_value;
- char smap_key[20];
+ char smap_key[21];
/* hex values are lower case or numeric, keys are upper */
if (mapbuf[0] >= 'A' && mapbuf[0] <= 'Z') {