diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firemon/netstats.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/firemon/netstats.c b/src/firemon/netstats.c index ad123be50..c68e2e51b 100644 --- a/src/firemon/netstats.c +++ b/src/firemon/netstats.c | |||
@@ -161,8 +161,8 @@ static void print_proc(int index, int itv, int col) { | |||
161 | } | 161 | } |
162 | 162 | ||
163 | // pid | 163 | // pid |
164 | char pidstr[10]; | 164 | char pidstr[11]; |
165 | snprintf(pidstr, 10, "%u", index); | 165 | snprintf(pidstr, 11, "%d", index); |
166 | 166 | ||
167 | // user | 167 | // user |
168 | char *user = get_user_name(pids[index].uid); | 168 | char *user = get_user_name(pids[index].uid); |