diff options
author | Karel Zak | 2019-05-16 13:31:30 +0200 |
---|---|---|
committer | Karel Zak | 2019-05-16 13:31:30 +0200 |
commit | 4ac2ab97d18fc53b169d492168cc455d55887038 (patch) | |
tree | 1507a1fc8bb631986cae48eb423dd10fba0179c2 /include | |
parent | libsmartcols: (groups) improve scols_table_group_lines() args check [coverity... (diff) | |
parent | lscpu: move trailing null after removing characters from a string (diff) | |
download | kernel-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.h | 1 |
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); |