diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-09-06 12:02:28 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-09-06 12:02:28 +0000 |
| commit | 1757ba14bf2cc0c79974835dab55ef6615edf9b8 (patch) | |
| tree | 0509df937c0d4c3aeb9766aa150659d6a2ec887f /usr.bin | |
| parent | d9442b10a2e14c1c55f21743fa7a653e9b241e05 (diff) | |
| parent | 7ff2ee12443e4146db691ffbd758fcfe6daa3d91 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/procstat/procstat_kstack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/procstat/procstat_kstack.c b/usr.bin/procstat/procstat_kstack.c index cf324475711c..a413926736b3 100644 --- a/usr.bin/procstat/procstat_kstack.c +++ b/usr.bin/procstat/procstat_kstack.c @@ -131,6 +131,7 @@ kstack_cleanup_encoded(const char *old, char *new, int kflag) cp_new++; } } + *cp_new = '\0'; cp_tofree = cp_loop = strdup(new); } else cp_tofree = cp_loop = strdup(old); @@ -138,7 +139,6 @@ kstack_cleanup_encoded(const char *old, char *new, int kflag) if (strlen(cp_line) != 0 && *cp_line != 127) xo_emit("{le:token/%s}", cp_line); } - *cp_new = '\0'; free(cp_tofree); } |
