diff options
Diffstat (limited to 'src/lib/libc/string/strncat.c')
| -rw-r--r-- | src/lib/libc/string/strncat.c | 11 | 
1 files changed, 4 insertions, 7 deletions
| diff --git a/src/lib/libc/string/strncat.c b/src/lib/libc/string/strncat.c index fa839663ac..05d35e0900 100644 --- a/src/lib/libc/string/strncat.c +++ b/src/lib/libc/string/strncat.c | |||
| @@ -31,7 +31,7 @@ | |||
| 31 | */ | 31 | */ | 
| 32 | 32 | ||
| 33 | #if defined(LIBC_SCCS) && !defined(lint) | 33 | #if defined(LIBC_SCCS) && !defined(lint) | 
| 34 | static char *rcsid = "$OpenBSD: strncat.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; | 34 | static char *rcsid = "$OpenBSD: strncat.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $"; | 
| 35 | #endif /* LIBC_SCCS and not lint */ | 35 | #endif /* LIBC_SCCS and not lint */ | 
| 36 | 36 | ||
| 37 | #include <string.h> | 37 | #include <string.h> | 
| @@ -41,14 +41,11 @@ static char *rcsid = "$OpenBSD: strncat.c,v 1.3 2003/06/02 20:18:38 millert Exp | |||
| 41 | * are written at dst (at most n+1 bytes being appended). Return dst. | 41 | * are written at dst (at most n+1 bytes being appended). Return dst. | 
| 42 | */ | 42 | */ | 
| 43 | char * | 43 | char * | 
| 44 | strncat(dst, src, n) | 44 | strncat(char *dst, const char *src, size_t n) | 
| 45 | char *dst; | ||
| 46 | const char *src; | ||
| 47 | register size_t n; | ||
| 48 | { | 45 | { | 
| 49 | if (n != 0) { | 46 | if (n != 0) { | 
| 50 | register char *d = dst; | 47 | char *d = dst; | 
| 51 | register const char *s = src; | 48 | const char *s = src; | 
| 52 | 49 | ||
| 53 | while (*d != 0) | 50 | while (*d != 0) | 
| 54 | d++; | 51 | d++; | 
