]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxpty.c
NULL needs to be cast to void * when passed to a variadic function like
[PuTTY.git] / unix / uxpty.c
index f91dc7160ead071a18014f7d7ebc6ddee007f875..37a017d35ad79f8b19afdca765ef6caedbe628c3 100644 (file)
@@ -813,7 +813,7 @@ static const char *pty_init(void *frontend, void **backend_handle, Config *cfg,
                sprintf(shellname, "-%s", p);
            } else
                shellname = shell;
-           execl(getenv("SHELL"), shellname, NULL);
+           execl(getenv("SHELL"), shellname, (void *)NULL);
        }
 
        /*