summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/tinfo/lib_tparm.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2000-10-22 18:27:18 +0000
committermillert <millert@openbsd.org>2000-10-22 18:27:18 +0000
commit77c4fa26c6285d9f2b132fa6a07933d42629509f (patch)
tree7a870c763bce0356d659b4f87850503c8dc3dd13 /lib/libcurses/tinfo/lib_tparm.c
parentmakeoptions DEBUG does not imply -DDEBUG; noticed by gluk@ptci.ru. (diff)
downloadwireguard-openbsd-77c4fa26c6285d9f2b132fa6a07933d42629509f.tar.xz
wireguard-openbsd-77c4fa26c6285d9f2b132fa6a07933d42629509f.zip
update to ncurses 5.2
Diffstat (limited to 'lib/libcurses/tinfo/lib_tparm.c')
-rw-r--r--lib/libcurses/tinfo/lib_tparm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libcurses/tinfo/lib_tparm.c b/lib/libcurses/tinfo/lib_tparm.c
index a548dcb35de..536301ca9c4 100644
--- a/lib/libcurses/tinfo/lib_tparm.c
+++ b/lib/libcurses/tinfo/lib_tparm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_tparm.c,v 1.5 2000/10/08 22:47:02 millert Exp $ */
+/* $OpenBSD: lib_tparm.c,v 1.6 2000/10/22 18:27:23 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998,2000 Free Software Foundation, Inc. *
@@ -44,7 +44,7 @@
#include <term.h>
#include <tic.h>
-MODULE_ID("$From: lib_tparm.c,v 1.47 2000/10/04 00:57:13 tom Exp $")
+MODULE_ID("$From: lib_tparm.c,v 1.48 2000/10/14 17:45:00 Sergei.Ivanov Exp $")
/*
* char *
@@ -719,8 +719,7 @@ tparam_internal(const char *string, va_list ap)
string++;
} /* endwhile (*string) */
- if (out_buff == 0 && (out_buff = typeCalloc(char, 1)) == NULL)
- return (NULL);
+ get_space(1);
out_buff[out_used] = '\0';
T((T_RETURN("%s"), _nc_visbuf(out_buff)));