From 86f41c7a18142a2fe2eb8957f9b2cde37fc1ec27 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 6 Apr 2005 00:15:05 +0000 Subject: [PATCH] * 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 --- src/appl/telnet/telnet/ChangeLog | 5 +++++ src/appl/telnet/telnet/commands.c | 4 ++-- 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 + + * commands.c (shell): Change 0 to (char*)NULL in execl calls. + Patch provided by Michael Calmer. + 2005-03-28 Tom Yu * 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); } -- 2.26.2