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");