summaryrefslogtreecommitdiff
path: root/lib/libcurses/tinfo/doalloc.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-03-15 19:12:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-03-15 19:12:24 +0000
commit5ae0c7aa4dc3981f2cbb90c48eddd9b2b62453a0 (patch)
treefad8f0a7e3df865833d8e1027003c1584a721593 /lib/libcurses/tinfo/doalloc.c
parent6db043601217d8ab6b5c564bd032eae7da5cdf78 (diff)
ncurses-4.2-990314
Diffstat (limited to 'lib/libcurses/tinfo/doalloc.c')
-rw-r--r--lib/libcurses/tinfo/doalloc.c10
1 files changed, 5 insertions, 5 deletions
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 <curses.priv.h>
-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;