* commands.c (shell): Change 0 to (char*)NULL in execl calls. Patch provided
authorKen Raeburn <raeburn@mit.edu>
Wed, 6 Apr 2005 00:15:05 +0000 (00:15 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 6 Apr 2005 00:15:05 +0000 (00:15 +0000)
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
src/appl/telnet/telnet/commands.c

index e223a7750a413ed8a88ebc1e6af28bf28338c900..3e090ca6e5234bb0e83df94ad6817b5379384c90 100644 (file)
@@ -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
index a637e9e601aad72840ad7091f9ade706c9ca442b..cb3390d38c484b0cade3b5f9a33ff31fa6510517 100644 (file)
@@ -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);
        }