mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
bzero -> memset
This commit is contained in:
parent
222d260765
commit
e281c20f4e
@ -109,7 +109,7 @@ char * tgetpass(prompt, timeout)
|
||||
* mask out SIGINT, should probably just catch it.
|
||||
*/
|
||||
#ifdef POSIX_SIGNALS
|
||||
(void) bzero((char *)(&mask), sizeof(mask));
|
||||
(void) memset((VOID *)&mask, 0, sizeof(mask));
|
||||
(void) sigaddset(&mask, SIGINT);
|
||||
(void) sigprocmask(SIG_BLOCK, &mask, &oldmask);
|
||||
#else
|
||||
|
2
visudo.c
2
visudo.c
@ -127,7 +127,7 @@ int main(argc, argv)
|
||||
* Setup signal handlers
|
||||
*/
|
||||
#ifdef POSIX_SIGNALS
|
||||
(void) bzero((char *)(&action), sizeof(action));
|
||||
(void) memset((VOID *)&action, 0, sizeof(action));
|
||||
action.sa_handler = Exit;
|
||||
action.sa_flags = SA_RESETHAND;
|
||||
(void) sigaction(SIGILL, &action, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user