=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/utf8.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- src/usr.bin/ssh/utf8.c 2020/03/06 18:12:55 1.9 +++ src/usr.bin/ssh/utf8.c 2020/04/03 02:25:21 1.10 @@ -1,4 +1,4 @@ -/* $OpenBSD: utf8.c,v 1.9 2020/03/06 18:12:55 markus Exp $ */ +/* $OpenBSD: utf8.c,v 1.10 2020/04/03 02:25:21 djm Exp $ */ /* * Copyright (c) 2016 Ingo Schwarze * @@ -243,6 +243,20 @@ free(cp); } else *str = '\0'; + return ret; +} + +int +asmprintf(char **outp, size_t sz, int *wp, const char *fmt, ...) +{ + va_list ap; + int ret; + + *outp = NULL; + va_start(ap, fmt); + ret = vasnmprintf(outp, sz, wp, fmt, ap); + va_end(ap); + return ret; }