From cf798348701f0aba7a0acbd8e2e4052b213737e7 Mon Sep 17 00:00:00 2001 From: "David A. Baer" Date: Tue, 5 Aug 2025 12:03:50 -0400 Subject: [PATCH] Pointer qualifier fix --- src/odt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/odt.c b/src/odt.c index 6316bd0..489bdc4 100644 --- a/src/odt.c +++ b/src/odt.c @@ -51,7 +51,7 @@ extractTemplateDocument(const char* const templateFilename, const char* const te pid_t child_pid; if ((child_pid = fork()) == 0) { /* you are the child */ - char* const args[] = { "unzip", "-d", tempDir, templateFilename, NULL }; + char* const args[] = { "unzip", "-d", (char* const)tempDir, (char* const)templateFilename, NULL }; freopen("/dev/null", "w", stdout); execvp("unzip", args); perror("execvp"); @@ -129,7 +129,7 @@ removeDirectory(const char* const tempDir) { pid_t child_pid; if ((child_pid = fork()) == 0) { /* you are the child */ - char* const args[] = { "rm", "-rf", tempDir, NULL }; + char* const args[] = { "rm", "-rf", (char* const)tempDir, NULL }; freopen("/dev/null", "w", stdout); execvp("rm", args); perror("execvp");