diff options
author | mmcc@openbsd.org <mmcc@openbsd.org> | 2015-12-11 00:20:04 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-12-11 13:23:14 +1100 |
commit | 94141b7ade24afceeb6762a3f99e09e47a6c42b6 (patch) | |
tree | 720e72d7eecee12f095144e7d469f3d20c2051c5 /readpass.c | |
parent | d59ce08811bf94111c2f442184cf7d1257ffae24 (diff) | |
download | openssh-git-94141b7ade24afceeb6762a3f99e09e47a6c42b6.tar.gz |
upstream commit
Pass (char *)NULL rather than (char *)0 to execl and
execlp.
ok dtucker@
Upstream-ID: 56c955106cbddba86c3dd9bbf786ac0d1b361492
Diffstat (limited to 'readpass.c')
-rw-r--r-- | readpass.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: readpass.c,v 1.50 2014/02/02 03:44:31 djm Exp $ */ +/* $OpenBSD: readpass.c,v 1.51 2015/12/11 00:20:04 mmcc Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -76,7 +76,7 @@ ssh_askpass(char *askpass, const char *msg) close(p[0]); if (dup2(p[1], STDOUT_FILENO) < 0) fatal("ssh_askpass: dup2: %s", strerror(errno)); - execlp(askpass, askpass, msg, (char *) 0); + execlp(askpass, askpass, msg, (char *)NULL); fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); } close(p[1]); |