aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sshfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sshfs.c b/sshfs.c
index fdd4a9b..e155748 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3390,10 +3390,14 @@ static int workaround_opt_proc(void *data, const char *arg, int key,
return -1;
}
-int parse_workarounds(void)
+static int parse_workarounds(void)
{
int res;
- char *argv[] = { "", "-o", sshfs.workarounds, NULL };
+ /* Need separate variables because literals are const
+ char */
+ char argv0[] = "";
+ char argv1[] = "-o";
+ char *argv[] = { argv0, argv1, sshfs.workarounds, NULL };
struct fuse_args args = FUSE_ARGS_INIT(3, argv);
char *s = sshfs.workarounds;
if (!s)