summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2005-04-06 00:15:05 +0000
committerKen Raeburn <raeburn@mit.edu>2005-04-06 00:15:05 +0000
commit86f41c7a18142a2fe2eb8957f9b2cde37fc1ec27 (patch)
tree2e6455e12fbf43a0c07f54aa10c94716ca1a664e /src/appl
parentda78d45b12aaf21bc21309fe4d36517e830360c1 (diff)
downloadkrb5-86f41c7a18142a2fe2eb8957f9b2cde37fc1ec27.tar.gz
krb5-86f41c7a18142a2fe2eb8957f9b2cde37fc1ec27.tar.xz
krb5-86f41c7a18142a2fe2eb8957f9b2cde37fc1ec27.zip
* commands.c (shell): Change 0 to (char*)NULL in execl calls. Patch provided
by Michael Calmer. ticket: 3000 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17166 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r--src/appl/telnet/telnet/ChangeLog5
-rw-r--r--src/appl/telnet/telnet/commands.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog
index e223a7750..3e090ca6e 100644
--- a/src/appl/telnet/telnet/ChangeLog
+++ b/src/appl/telnet/telnet/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * commands.c (shell): Change 0 to (char*)NULL in execl calls.
+ Patch provided by Michael Calmer.
+
2005-03-28 Tom Yu <tlyu@mit.edu>
* telnet.c (slc_add_reply, slc_end_reply): Fix buffer overflow
diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c
index a637e9e60..cb3390d38 100644
--- a/src/appl/telnet/telnet/commands.c
+++ b/src/appl/telnet/telnet/commands.c
@@ -1467,9 +1467,9 @@ shell(argc, argv)
else
shellname++;
if (argc > 1)
- execl(shellp, shellname, "-c", &saveline[1], 0);
+ execl(shellp, shellname, "-c", &saveline[1], (char *)NULL);
else
- execl(shellp, shellname, 0);
+ execl(shellp, shellname, (char *)NULL);
perror("Execl");
_exit(1);
}