summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-07 15:31:41 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-03-17 15:54:17 +0100
commit1e806f9899600256cbcc540715261f461e11dd25 (patch)
tree292ef9c567e8a0c2b17758f25eab49120aebfcc1 /ProcessList.c
parentd9f2eacbc5b3fccf63b24944ce9a30d762baea3c (diff)
RichString: do not unnecessarily clean whole buffer
The local stack buffer does not need to be cleaned to zeros when - just initialized, cause the length is set to 0 and the first character is set to '\0', so all printing functions will safely stop - no further used, i.e. the variable goes out of scope
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 7c12c7bf..37c40bcf 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -94,7 +94,7 @@ static const char* alignedProcessFieldTitle(ProcessField field) {
}
void ProcessList_printHeader(const ProcessList* this, RichString* header) {
- RichString_prune(header);
+ RichString_rewind(header, RichString_size(header));
const Settings* settings = this->settings;
const ProcessField* fields = settings->fields;

© 2014-2024 Faster IT GmbH | imprint | privacy policy