summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/stack_protector.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-03-21 22:41:28 +0000
committerbluhm <bluhm@openbsd.org>2016-03-21 22:41:28 +0000
commit46afc4a47fab5533b885a0604dcf35228f31933f (patch)
treeaa32ec6deca4cbcf5e5701331e51425c39075b2f /lib/libc/sys/stack_protector.c
parentReplace magic number in urtwn(4) with corresponding macro from ic/r92creg.h. (diff)
downloadwireguard-openbsd-46afc4a47fab5533b885a0604dcf35228f31933f.tar.xz
wireguard-openbsd-46afc4a47fab5533b885a0604dcf35228f31933f.zip
Rename the system call sendsyslog2 to sendsyslog. Keep the old one
as osendsyslog for a while. The three argument variant is the only one that will stay. input kettenis@; OK deraadt@
Diffstat (limited to 'lib/libc/sys/stack_protector.c')
-rw-r--r--lib/libc/sys/stack_protector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/stack_protector.c b/lib/libc/sys/stack_protector.c
index b1b07c2beda..116aecd316a 100644
--- a/lib/libc/sys/stack_protector.c
+++ b/lib/libc/sys/stack_protector.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stack_protector.c,v 1.22 2016/03/13 18:34:21 guenther Exp $ */
+/* $OpenBSD: stack_protector.c,v 1.23 2016/03/21 22:41:28 bluhm Exp $ */
/*
* Copyright (c) 2002 Hiroaki Etoh, Federico G. Schwindt, and Miodrag Vallat.
@@ -68,7 +68,7 @@ __stack_smash_handler(const char func[], int damaged)
strlcat(buf, ": stack overflow in function ", sizeof buf);
strlcat(buf, func, sizeof buf);
- sendsyslog2(buf, strlen(buf), LOG_CONS);
+ sendsyslog(buf, strlen(buf), LOG_CONS);
memset(&sa, 0, sizeof(sa));
sigemptyset(&sa.sa_mask);