summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinyoung, Song <minyoung.song@samsung.com>2016-03-30 11:14:32 +0900
committerMinyoung, Song <minyoung.song@samsung.com>2016-03-30 11:14:32 +0900
commit99115c352f766b04639911693ee9b5fe97ee2531 (patch)
treeb162aaccb2929042ed7f63bd930a1fbe4604b23d
parent7e75a143f988a643d75490453108ea020038c0b1 (diff)
downloadmemps-99115c352f766b04639911693ee9b5fe97ee2531.tar.gz
memps-99115c352f766b04639911693ee9b5fe97ee2531.tar.bz2
memps-99115c352f766b04639911693ee9b5fe97ee2531.zip
Change-Id: I8ef500d9007f0b151fcc5558cc5faab84dbb9d7c Signed-off-by: Minyoung, Song <minyoung.song@samsung.com>
-rw-r--r--memps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/memps.c b/memps.c
index 489c418..c6903da 100644
--- a/memps.c
+++ b/memps.c
@@ -345,7 +345,7 @@ mapinfo *read_mapinfo(char** smaps, int rest_line)
mi->perm[3] = line[21]; /* may share or private */
if (len < 50)
- strncpy(mi->name, "[anon]", strlen("[anon]"));
+ strncpy(mi->name, "[anon]", strlen("[anon]")+1);
else
strncpy(mi->name, line + 49, len);