Fix compile error on Windows.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 14 Oct 2012 14:39:16 +0000 (16:39 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 14 Oct 2012 14:39:16 +0000 (16:39 +0200)
src/process.c

index 19c0582..bec78ba 100644 (file)
@@ -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)