diff options
Diffstat (limited to 'src/lib/libc/string/strcat.c')
| -rw-r--r-- | src/lib/libc/string/strcat.c | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/src/lib/libc/string/strcat.c b/src/lib/libc/string/strcat.c index e741b84f03..10e0aefe12 100644 --- a/src/lib/libc/string/strcat.c +++ b/src/lib/libc/string/strcat.c | |||
| @@ -1,3 +1,5 @@ | |||
| 1 | /* $OpenBSD: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $ */ | ||
| 2 | |||
| 1 | /* | 3 | /* | 
| 2 | * Copyright (c) 1988 Regents of the University of California. | 4 | * Copyright (c) 1988 Regents of the University of California. | 
| 3 | * All rights reserved. | 5 | * All rights reserved. | 
| @@ -33,7 +35,7 @@ | |||
| 33 | 35 | ||
| 34 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) | 
| 35 | /*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/ | 37 | /*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/ | 
| 36 | static char *rcsid = "$Id: strcat.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; | 38 | static char *rcsid = "$Id: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $"; | 
| 37 | #endif /* LIBC_SCCS and not lint */ | 39 | #endif /* LIBC_SCCS and not lint */ | 
| 38 | 40 | ||
| 39 | #include <string.h> | 41 | #include <string.h> | 
| @@ -46,6 +48,6 @@ strcat(s, append) | |||
| 46 | char *save = s; | 48 | char *save = s; | 
| 47 | 49 | ||
| 48 | for (; *s; ++s); | 50 | for (; *s; ++s); | 
| 49 | while (*s++ = *append++); | 51 | while ((*s++ = *append++) != '\0'); | 
| 50 | return(save); | 52 | return(save); | 
| 51 | } | 53 | } | 
