diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-02 06:23:57 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-03-02 06:23:57 +0000 |
commit | e52ae7d7cb3b9267a450ee786b056b14391f2f50 (patch) | |
tree | 852bbb003a1438d75ce8016c9feef856d56fd2fd /lib/libcurses/tinfo/setbuf.c | |
parent | aedffcef562be3c46e9a21641c0a65c968b1d889 (diff) |
ncurses-4.2-990301
Diffstat (limited to 'lib/libcurses/tinfo/setbuf.c')
-rw-r--r-- | lib/libcurses/tinfo/setbuf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcurses/tinfo/setbuf.c b/lib/libcurses/tinfo/setbuf.c index 677873b6da2..d798cce9611 100644 --- a/lib/libcurses/tinfo/setbuf.c +++ b/lib/libcurses/tinfo/setbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: setbuf.c,v 1.2 1999/02/24 05:36:11 millert Exp $ */ +/* $OpenBSD: setbuf.c,v 1.3 1999/03/02 06:23:29 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -44,7 +44,7 @@ #include <curses.priv.h> -MODULE_ID("$From: setbuf.c,v 1.4 1999/02/10 03:15:09 tom Exp $") +MODULE_ID("$From: setbuf.c,v 1.5 1999/02/27 20:00:15 tom Exp $") /* * If the output file descriptor is connected to a tty (the typical case) it @@ -115,7 +115,7 @@ void _nc_set_buffer(FILE *ofp, bool buffered) if ((SP->_buffered = buffered) != 0) { buf_len = min(LINES * (COLS + 6), 2800); if ((buf_ptr = SP->_setbuf) == 0) { - if ((buf_ptr = malloc(buf_len)) == NULL) + if ((buf_ptr = typeMalloc(char, buf_len)) == NULL) return; SP->_setbuf = buf_ptr; /* Don't try to free this! */ |