diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/telnet/telnet/ChangeLog | 5 | ||||
| -rw-r--r-- | 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 <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); } |
