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 19c058293ec53d506a4dacbd0c8449587ec4e2e8..bec78ba0e28c69120d633bad8be82422fee2d674 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)