diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1999-05-08 20:29:05 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1999-05-08 20:29:05 +0000 |
commit | 8c95f4f8701e20bcf4f2aae69d754eacd843863a (patch) | |
tree | b355b83f3d9277f0a7cf78837d36a3eb50282aaf /lib/libcurses/tinfo/doalloc.c | |
parent | 0084ba11e5e602ab257ba70015fbc2e4b3d8ce98 (diff) |
ncurses-4.2-990424
Diffstat (limited to 'lib/libcurses/tinfo/doalloc.c')
-rw-r--r-- | lib/libcurses/tinfo/doalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcurses/tinfo/doalloc.c b/lib/libcurses/tinfo/doalloc.c index 8a87ead7f15..2afac65e2ef 100644 --- a/lib/libcurses/tinfo/doalloc.c +++ b/lib/libcurses/tinfo/doalloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: doalloc.c,v 1.3 1999/03/15 19:12:23 millert Exp $ */ +/* $OpenBSD: doalloc.c,v 1.4 1999/05/08 20:29:01 millert Exp $ */ /**************************************************************************** * Copyright (c) 1998 Free Software Foundation, Inc. * @@ -64,7 +64,7 @@ char *_nc_strdup(const char *src) { char *dst; if (src != 0) { - *dst = typeMalloc(char, strlen(src) + 1); + dst = typeMalloc(char, strlen(src) + 1); if (dst != 0) { (void)strcpy(dst, src); } |