summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2020-05-01 06:28:52 +0000
committerDamien Miller <djm@mindrot.org>2020-05-01 16:40:11 +1000
commit31909696c4620c431dd55f6cd15db65c4e9b98da (patch)
treee385509001559d3a95443cf7d7fb7e8f6298d05a /utf8.c
parent99ce9cefbe532ae979744c6d956b49f4b02aff82 (diff)
upstream: expose vasnmprintf(); ok (as part of other commit) markus
deraadt OpenBSD-Commit-ID: 2e80cea441c599631a870fd40307d2ade5a7f9b5
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/utf8.c b/utf8.c
index f83401996..7f63b25ae 100644
--- a/utf8.c
+++ b/utf8.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: utf8.c,v 1.10 2020/04/03 02:25:21 djm Exp $ */
+/* $OpenBSD: utf8.c,v 1.11 2020/05/01 06:28:52 djm Exp $ */
/*
* Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -43,7 +43,6 @@
static int dangerous_locale(void);
static int grow_dst(char **, size_t *, size_t, char **, size_t);
-static int vasnmprintf(char **, size_t, int *, const char *, va_list);
/*
@@ -101,7 +100,7 @@ grow_dst(char **dst, size_t *sz, size_t maxsz, char **dp, size_t need)
* written is returned in *wp.
*/
-static int
+int
vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap)
{
char *src; /* Source string returned from vasprintf. */