diff options
-rw-r--r-- | utf8.c | 5 | ||||
-rw-r--r-- | utf8.h | 3 |
2 files changed, 4 insertions, 4 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: utf8.c,v 1.10 2020/04/03 02:25:21 djm Exp $ */ | 1 | /* $OpenBSD: utf8.c,v 1.11 2020/05/01 06:28:52 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> |
4 | * | 4 | * |
@@ -43,7 +43,6 @@ | |||
43 | 43 | ||
44 | static int dangerous_locale(void); | 44 | static int dangerous_locale(void); |
45 | static int grow_dst(char **, size_t *, size_t, char **, size_t); | 45 | static int grow_dst(char **, size_t *, size_t, char **, size_t); |
46 | static int vasnmprintf(char **, size_t, int *, const char *, va_list); | ||
47 | 46 | ||
48 | 47 | ||
49 | /* | 48 | /* |
@@ -101,7 +100,7 @@ grow_dst(char **dst, size_t *sz, size_t maxsz, char **dp, size_t need) | |||
101 | * written is returned in *wp. | 100 | * written is returned in *wp. |
102 | */ | 101 | */ |
103 | 102 | ||
104 | static int | 103 | int |
105 | vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) | 104 | vasnmprintf(char **str, size_t maxsz, int *wp, const char *fmt, va_list ap) |
106 | { | 105 | { |
107 | char *src; /* Source string returned from vasprintf. */ | 106 | char *src; /* Source string returned from vasprintf. */ |
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: utf8.h,v 1.2 2020/04/03 02:25:21 djm Exp $ */ | 1 | /* $OpenBSD: utf8.h,v 1.3 2020/05/01 06:28:52 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | * Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> |
4 | * | 4 | * |
@@ -15,6 +15,7 @@ | |||
15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
16 | */ | 16 | */ |
17 | 17 | ||
18 | int vasnmprintf(char **, size_t, int *, const char *, va_list); | ||
18 | int mprintf(const char *, ...) | 19 | int mprintf(const char *, ...) |
19 | __attribute__((format(printf, 1, 2))); | 20 | __attribute__((format(printf, 1, 2))); |
20 | int fmprintf(FILE *, const char *, ...) | 21 | int fmprintf(FILE *, const char *, ...) |