From: Guus Sliepen Date: Sun, 14 Oct 2012 14:39:16 +0000 (+0200) Subject: Fix compile error on Windows. X-Git-Tag: import-tinc-1.1~253 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=4200a378c4fedf64e89b9f8481d7cd09dac14965;p=meshlink Fix compile error on Windows. --- diff --git a/src/process.c b/src/process.c index 19c05829..bec78ba0 100644 --- a/src/process.c +++ b/src/process.c @@ -73,7 +73,7 @@ static bool install_service(void) { strncat(command, "\"", sizeof command - strlen(command)); for(char **argp = g_argv + 1; *argp; argp++) { - char &space = strchr(*argp, ' '); + char *space = strchr(*argp, ' '); strncat(command, " ", sizeof command - strlen(command)); if(space)