mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
* slsignal.c (SLsystem): Replaced NULL with (char *) NULL in
call to execl. From patches from the OpenBSD ports collection.
This commit is contained in:
parent
e0f5d6e37f
commit
ad1e412fa1
@ -1,3 +1,10 @@
|
|||||||
|
2004-09-24 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
* slsignal.c (SLsystem): Replaced NULL with (char *) NULL in
|
||||||
|
call to execl.
|
||||||
|
|
||||||
|
From patches from the OpenBSD ports collection.
|
||||||
|
|
||||||
2004-09-04 Pavel S. Shirshov <pavelsh@mail.ru>
|
2004-09-04 Pavel S. Shirshov <pavelsh@mail.ru>
|
||||||
|
|
||||||
* sltermin.c (): Avoid strncpy, home_ti is 1K long and
|
* sltermin.c (): Avoid strncpy, home_ti is 1K long and
|
||||||
|
@ -227,7 +227,7 @@ int SLsystem (char *cmd)
|
|||||||
(void) sigprocmask (SIG_SETMASK, &save_mask, NULL);
|
(void) sigprocmask (SIG_SETMASK, &save_mask, NULL);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
execl ("/bin/sh", "sh", "-c", cmd, NULL);
|
execl ("/bin/sh", "sh", "-c", cmd, (char *) NULL);
|
||||||
_exit (127);
|
_exit (127);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user