From 5ae0c7aa4dc3981f2cbb90c48eddd9b2b62453a0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 15 Mar 1999 19:12:24 +0000 Subject: ncurses-4.2-990314 --- lib/libcurses/tinfo/doalloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libcurses/tinfo/doalloc.c') diff --git a/lib/libcurses/tinfo/doalloc.c b/lib/libcurses/tinfo/doalloc.c index 43b6017e35c..8a87ead7f15 100644 --- a/lib/libcurses/tinfo/doalloc.c +++ b/lib/libcurses/tinfo/doalloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doalloc.c,v 1.2 1999/03/02 06:23:28 millert Exp $ */ +/* $OpenBSD: doalloc.c,v 1.3 1999/03/15 19:12:23 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -42,7 +42,7 @@ #include -MODULE_ID("$From: doalloc.c,v 1.4 1999/02/27 19:58:33 tom Exp $") +MODULE_ID("$From: doalloc.c,v 1.5 1999/03/14 12:25:27 tom Exp $") void *_nc_doalloc(void *oldp, size_t amount) { @@ -60,13 +60,13 @@ void *_nc_doalloc(void *oldp, size_t amount) } #if !HAVE_STRDUP -char *_nc_strdup(char *src) +char *_nc_strdup(const char *src) { char *dst; if (src != 0) { - char *dst = typeMalloc(char, strlen(src) + 1); + *dst = typeMalloc(char, strlen(src) + 1); if (dst != 0) { - (void)strcpy(dst, src): + (void)strcpy(dst, src); } } else { dst = 0; -- cgit v1.2.3