summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-03-27 22:17:48 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-03-27 22:17:48 +0000
commitd89c26d7f41b32eb24255e225c450f0fe77a3b2f (patch)
treea1ebd20914342b20169abfbd86f7bfd6efff60f1
parentabcbbe804e2cbe07a7dcea0dd6cdda0f9a498a57 (diff)
Add missing space in stack smash handler error message.
ok kettenis@, deraadt@
-rw-r--r--libexec/ld.so/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/util.c b/libexec/ld.so/util.c
index 916f874cb5d..3d660a969be 100644
--- a/libexec/ld.so/util.c
+++ b/libexec/ld.so/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.46 2019/05/08 22:15:48 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.47 2020/03/27 22:17:47 matthieu Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -54,7 +54,7 @@ __stack_smash_handler(char func[], int damaged)
if (_dl_strlen(message) > sizeof(message)/2)
_dl_strlcpy(message + sizeof(message)/2, "...",
sizeof(message) - sizeof(message)/2);
- _dl_strlcat(message, "stack overflow in function ", sizeof message);
+ _dl_strlcat(message, " stack overflow in function ", sizeof message);
_dl_strlcat(message, func, sizeof message);
_dl_sendsyslog(message, _dl_strlen(message), LOG_CONS);