diff options
author | 1996-04-19 16:08:13 +0000 | |
---|---|---|
committer | 1996-04-19 16:08:13 +0000 | |
commit | 0c0430f8be50281c74d9dc83e99431ec6557954b (patch) | |
tree | afa225701d5d148fcc2f938d8b48ae7e0389ceef /sys/lib/libkern/strcat.c | |
parent | Fix a bit, so it's now compiles. (diff) | |
download | wireguard-openbsd-0c0430f8be50281c74d9dc83e99431ec6557954b.tar.xz wireguard-openbsd-0c0430f8be50281c74d9dc83e99431ec6557954b.zip |
NetBSD 960317 merge
Diffstat (limited to 'sys/lib/libkern/strcat.c')
-rw-r--r-- | sys/lib/libkern/strcat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/lib/libkern/strcat.c b/sys/lib/libkern/strcat.c index 6c2d76ab54b..069bd1fa35b 100644 --- a/sys/lib/libkern/strcat.c +++ b/sys/lib/libkern/strcat.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strcat.c,v 1.2 1996/04/19 16:09:37 niklas Exp $ */ + /* * Copyright (c) 1988 Regents of the University of California. * All rights reserved. @@ -33,7 +35,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/ -static char *rcsid = "$Id: strcat.c,v 1.1.1.1 1995/10/18 08:52:50 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strcat.c,v 1.2 1996/04/19 16:09:37 niklas Exp $"; #endif /* LIBC_SCCS and not lint */ #include <string.h> @@ -46,6 +48,6 @@ strcat(s, append) char *save = s; for (; *s; ++s); - while (*s++ = *append++); + while ((*s++ = *append++) != '\0'); return(save); } |