From 937052b231259a47d881d539ad5748245ef55b99 Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Fri, 3 Jun 2022 08:55:20 +0200 Subject: New upstream version 3.2.1 --- OpenFilesScreen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenFilesScreen.c') diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c index 2d19169..787e17b 100644 --- a/OpenFilesScreen.c +++ b/OpenFilesScreen.c @@ -120,7 +120,9 @@ static OpenFiles_ProcessData* OpenFilesScreen_getProcessData(pid_t pid) { close(fdnull); char buffer[32] = {0}; xSnprintf(buffer, sizeof(buffer), "%d", pid); - execlp("lsof", "lsof", "-P", "-o", "-p", buffer, "-F", 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("lsof", "lsof", "-P", "-o", "-p", buffer, "-F", (char *)NULL); exit(127); } close(fdpair[1]); -- cgit v1.2.3