aboutsummaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-06-03 08:55:21 +0200
committerDaniel Lange <DLange@git.local>2022-06-03 08:55:21 +0200
commitf8c86394f62c6e6f950fcbbff008f639db33241c (patch)
treee82dcf1ba008020628c96661587ed870e0cac179 /TraceScreen.c
parent4d3dbd693ecd079d5907d81d5d2ff191baa61033 (diff)
parent937052b231259a47d881d539ad5748245ef55b99 (diff)
downloaddebian_htop-f8c86394f62c6e6f950fcbbff008f639db33241c.tar.gz
debian_htop-f8c86394f62c6e6f950fcbbff008f639db33241c.tar.bz2
debian_htop-f8c86394f62c6e6f950fcbbff008f639db33241c.zip
Update upstream source from tag 'upstream/3.2.1'
Update to upstream version '3.2.1' with Debian dir 43b873ddb7f7032e95da61a9cb65eee15c671e73
Diffstat (limited to 'TraceScreen.c')
-rw-r--r--TraceScreen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/TraceScreen.c b/TraceScreen.c
index c3a9449..90400b4 100644
--- a/TraceScreen.c
+++ b/TraceScreen.c
@@ -90,7 +90,9 @@ bool TraceScreen_forkTracer(TraceScreen* this) {
char buffer[32] = {0};
xSnprintf(buffer, sizeof(buffer), "%d", this->super.process->pid);
- execlp("strace", "strace", "-T", "-tt", "-s", "512", "-p", buffer, NULL);
+ // Use of NULL in variadic functions must have a pointer cast.
+ // The NULL constant is not required by standard to have a pointer type.
+ execlp("strace", "strace", "-T", "-tt", "-s", "512", "-p", buffer, (char *)NULL);
// Should never reach here, unless execlp fails ...
const char* message = "Could not execute 'strace'. Please make sure it is available in your $PATH.";

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