summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2019-05-16 13:31:30 +0200
committerKarel Zak2019-05-16 13:31:30 +0200
commit4ac2ab97d18fc53b169d492168cc455d55887038 (patch)
tree1507a1fc8bb631986cae48eb423dd10fba0179c2 /include
parentlibsmartcols: (groups) improve scols_table_group_lines() args check [coverity... (diff)
parentlscpu: move trailing null after removing characters from a string (diff)
downloadkernel-qcow2-util-linux-4ac2ab97d18fc53b169d492168cc455d55887038.tar.gz
kernel-qcow2-util-linux-4ac2ab97d18fc53b169d492168cc455d55887038.tar.xz
kernel-qcow2-util-linux-4ac2ab97d18fc53b169d492168cc455d55887038.zip
Merge branch 'lscpu-output-fix' of https://github.com/kerolasa/util-linux
* 'lscpu-output-fix' of https://github.com/kerolasa/util-linux: lscpu: move trailing null after removing characters from a string
Diffstat (limited to 'include')
-rw-r--r--include/strutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/strutils.h b/include/strutils.h
index 5584ac5ec..50733c5f5 100644
--- a/include/strutils.h
+++ b/include/strutils.h
@@ -262,6 +262,7 @@ static inline void strrem(char *s, int rem)
if (*s != rem)
*p++ = *s;
}
+ *p = '\0';
}
extern char *strnappend(const char *s, const char *suffix, size_t b);