X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5a8afc787bcaafabd3aee68b6dac341962801b57..3d88e64dfcf5dc0fd361ce0c504c67a9196ce44c:/unix/pty.c diff --git a/unix/pty.c b/unix/pty.c index 63fe69e9..6d90abbd 100644 --- a/unix/pty.c +++ b/unix/pty.c @@ -498,7 +498,7 @@ static char *pty_init(void *frontend, void **backend_handle, Config *cfg, char *shellname; if (cfg->login_shell) { char *p = strrchr(shell, '/'); - shellname = smalloc(2+strlen(shell)); + shellname = snewn(2+strlen(shell), char); p = p ? p+1 : shell; sprintf(shellname, "-%s", p); } else