wdvi

network DVI viewer
Log | Files | Refs

commit 7188736cb557c411a7b40cb7abf6d79efaa6f961
parent 80b2614e968cbabec374b1374bd460902edd5844
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Thu, 19 Aug 2021 19:48:40 +0000

assume we have vasprintf

Diffstat:
Mpopups.c | 13-------------
1 file changed, 0 insertions(+), 13 deletions(-)

diff --git a/popups.c b/popups.c @@ -148,24 +148,11 @@ vmprintf(format, args) const char *format; va_list args; { -#if !HAVE_VASPRINTF - va_list args2; - int len; -#endif char *result; -#if HAVE_VASPRINTF if (vasprintf(&result, format, args) < 0) oops("! Out of memory (call to vasprintf() with format \"%s\").\n", format); -#else - va_copy(args2, args); - len = vnprintf(format, args2) + 1; - va_end(args2); - - result = xmalloc(len); - (void) vsnprintf(result, len, format, args); -#endif /* ! HAVE_VASPRINTF */ return result; }