diff options
Diffstat (limited to 'gpgme/posix-io.c')
-rw-r--r-- | gpgme/posix-io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gpgme/posix-io.c b/gpgme/posix-io.c index 8c688829..a7047bd2 100644 --- a/gpgme/posix-io.c +++ b/gpgme/posix-io.c @@ -304,7 +304,7 @@ _gpgme_io_waitpid (int pid, int hang, int *r_status, int *r_signal) /* Returns 0 on success, -1 on error. */ int -_gpgme_io_spawn (const char *path, char **argv, +_gpgme_io_spawn (const char *path, char *const argv[], struct spawn_fd_item_s *fd_list, pid_t *r_pid) { pid_t pid; @@ -427,7 +427,7 @@ _gpgme_io_spawn (const char *path, char **argv, close (fd); } - execv (path, argv); + execv (path, (char *const *) argv); /* Hmm: in that case we could write a special status code to the status-pipe. */ #if 0 |