summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2010-09-25 15:12:01 +0000
committermillert <millert@openbsd.org>2010-09-25 15:12:01 +0000
commit1b0b9da78c96dfc333268d87aac364e75b6721c6 (patch)
tree4a3790d640a2bcefb46883378e15e680cf23894c
parentfix typos in documentation and log_debug() function. (diff)
downloadwireguard-openbsd-1b0b9da78c96dfc333268d87aac364e75b6721c6.tar.xz
wireguard-openbsd-1b0b9da78c96dfc333268d87aac364e75b6721c6.zip
Use snprintf() not sprintf()
-rw-r--r--gnu/usr.bin/perl/x2p/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/x2p/str.c b/gnu/usr.bin/perl/x2p/str.c
index 58798c011fc..48e417eee34 100644
--- a/gnu/usr.bin/perl/x2p/str.c
+++ b/gnu/usr.bin/perl/x2p/str.c
@@ -29,7 +29,7 @@ str_2ptr(register STR *str)
GROWSTR(&(str->str_ptr), &(str->str_len), 24);
s = str->str_ptr;
if (str->str_nok) {
- sprintf(s,"%.20g",str->str_nval);
+ snprintf(s,str->str_len,"%.20g",str->str_nval);
while (*s) s++;
}
*s = '\0';