summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--openbsd-compat/strlcat.c12
2 files changed, 7 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 28ee1d6c4..0ea4054f9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,8 @@
12 since they're not useful right now. Patch from djm@. 12 since they're not useful right now. Patch from djm@.
13 - (dtucker) [openbsd-compat/getgrouplist.c] Sync OpenBSD revs 1.10 - 1.2 (ANSI 13 - (dtucker) [openbsd-compat/getgrouplist.c] Sync OpenBSD revs 1.10 - 1.2 (ANSI
14 prototypes, removal of "register"). 14 prototypes, removal of "register").
15 - (dtucker) [openbsd-compat/strlcat.c] Sync OpenBSD revs 1.11 - 1.12 (removal
16 of "register").
15 17
1620051105 1820051105
17 - (djm) OpenBSD CVS Sync 19 - (djm) OpenBSD CVS Sync
@@ -3254,4 +3256,4 @@
3254 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3256 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3255 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3257 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3256 3258
3257$Id: ChangeLog,v 1.3960 2005/11/10 04:56:44 dtucker Exp $ 3259$Id: ChangeLog,v 1.3961 2005/11/10 05:05:37 dtucker Exp $
diff --git a/openbsd-compat/strlcat.c b/openbsd-compat/strlcat.c
index 70f01cb2a..8252f31af 100644
--- a/openbsd-compat/strlcat.c
+++ b/openbsd-compat/strlcat.c
@@ -1,6 +1,6 @@
1/* OPENBSD ORIGINAL: lib/libc/string/strlcat.c */ 1/* OPENBSD ORIGINAL: lib/libc/string/strlcat.c */
2 2
3/* $OpenBSD: strlcat.c,v 1.11 2003/06/17 21:56:24 millert Exp $ */ 3/* $OpenBSD: strlcat.c,v 1.13 2005/08/08 08:05:37 espie Exp $ */
4 4
5/* 5/*
6 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 6 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -21,10 +21,6 @@
21#include "includes.h" 21#include "includes.h"
22#ifndef HAVE_STRLCAT 22#ifndef HAVE_STRLCAT
23 23
24#if defined(LIBC_SCCS) && !defined(lint)
25static char *rcsid = "$OpenBSD: strlcat.c,v 1.11 2003/06/17 21:56:24 millert Exp $";
26#endif /* LIBC_SCCS and not lint */
27
28#include <sys/types.h> 24#include <sys/types.h>
29#include <string.h> 25#include <string.h>
30 26
@@ -38,9 +34,9 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.11 2003/06/17 21:56:24 millert Exp
38size_t 34size_t
39strlcat(char *dst, const char *src, size_t siz) 35strlcat(char *dst, const char *src, size_t siz)
40{ 36{
41 register char *d = dst; 37 char *d = dst;
42 register const char *s = src; 38 const char *s = src;
43 register size_t n = siz; 39 size_t n = siz;
44 size_t dlen; 40 size_t dlen;
45 41
46 /* Find the end of dst and adjust bytes left but don't go past end */ 42 /* Find the end of dst and adjust bytes left but don't go past end */