bc8a7c
diff -up procps-ng-3.3.10/pmap.c.ori procps-ng-3.3.10/pmap.c
bc8a7c
--- procps-ng-3.3.10/pmap.c.ori	2017-02-20 10:47:08.292453148 +0100
bc8a7c
+++ procps-ng-3.3.10/pmap.c	2017-02-20 10:49:05.078924572 +0100
bc8a7c
@@ -615,7 +615,7 @@ static int one_proc(proc_t * p)
bc8a7c
 					total_private_dirty += smap_value;
bc8a7c
 					continue;
bc8a7c
 				}
bc8a7c
-				if (strncmp("Swap", smap_key, 4) == 0) {
bc8a7c
+				if ((strncmp("Swap", smap_key, 4) == 0) && (strlen(smap_key)==4)) {
bc8a7c
 					/*doesn't matter as long as last */
bc8a7c
 					printf("%0*" KLF "x %*lu %*llu %*llu %*s %s\n",
bc8a7c
 					       maxw1, start,