summaryrefslogtreecommitdiffstats
path: root/lib/libcurses/base/lib_color.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>1999-03-02 06:23:26 +0000
committermillert <millert@openbsd.org>1999-03-02 06:23:26 +0000
commitfeef4803a40c592364b218e74a951c67178917ec (patch)
treeaa10d366e07c2efb3312c722b5ee1db12b239b36 /lib/libcurses/base/lib_color.c
parentIgnore TX interrupts when there are not packets buffered. (diff)
downloadwireguard-openbsd-feef4803a40c592364b218e74a951c67178917ec.tar.xz
wireguard-openbsd-feef4803a40c592364b218e74a951c67178917ec.zip
ncurses-4.2-990301
Diffstat (limited to 'lib/libcurses/base/lib_color.c')
-rw-r--r--lib/libcurses/base/lib_color.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/base/lib_color.c b/lib/libcurses/base/lib_color.c
index 1aa3602c853..8ed06319de7 100644
--- a/lib/libcurses/base/lib_color.c
+++ b/lib/libcurses/base/lib_color.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lib_color.c,v 1.1 1999/01/18 19:09:39 millert Exp $ */
+/* $OpenBSD: lib_color.c,v 1.2 1999/03/02 06:23:27 millert Exp $ */
/****************************************************************************
* Copyright (c) 1998 Free Software Foundation, Inc. *
@@ -43,7 +43,7 @@
#include <term.h>
-MODULE_ID("$From: lib_color.c,v 1.33 1998/09/20 00:51:51 tom Exp $")
+MODULE_ID("$From: lib_color.c,v 1.34 1999/02/27 19:54:51 tom Exp $")
/*
* These should be screen structure members. They need to be globals for
@@ -168,7 +168,7 @@ int start_color(void)
returnCode(ERR);
SP->_coloron = 1;
- if ((SP->_color_table = malloc(sizeof(color_t) * COLORS)) == 0)
+ if ((SP->_color_table = typeMalloc(color_t, COLORS)) == 0)
returnCode(ERR);
if (hue_lightness_saturation)
memcpy(SP->_color_table, hls_palette, sizeof(color_t) * COLORS);