diff options
author | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:02 +0100 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2022-02-04 11:23:02 +0100 |
commit | a6822e98434cf7da6fab033898094976d881ee0f (patch) | |
tree | 2b0f2ac3ad8c9e9a8c01bb692d9bdb51ce91e83b /Header.c | |
parent | 30ce3b4c264c51c98f280e88e23792ff7deb2317 (diff) | |
download | debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.tar.gz debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.tar.bz2 debian_htop-a6822e98434cf7da6fab033898094976d881ee0f.zip |
New upstream version 3.1.2upstream/3.1.2
Diffstat (limited to 'Header.c')
-rw-r--r-- | Header.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -145,7 +145,7 @@ void Header_writeBackToSettings(const Header* this) { const Vector* vec = this->columns[col]; int len = Vector_size(vec); - colSettings->names = len ? xCalloc(len, sizeof(char*)) : NULL; + colSettings->names = len ? xCalloc(len + 1, sizeof(char*)) : NULL; colSettings->modes = len ? xCalloc(len, sizeof(int)) : NULL; colSettings->len = len; |