summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--openbsd-compat/strlcpy.c12
2 files changed, 6 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 367127ebc..665044558 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
17 - (dtucker) [openbsd-compat/{LOTS}] Move the "OPENBSD ORIGINAL" markers to 17 - (dtucker) [openbsd-compat/{LOTS}] Move the "OPENBSD ORIGINAL" markers to
18 after the copyright notices. Having them at the top next to the CVSIDs 18 after the copyright notices. Having them at the top next to the CVSIDs
19 guarantees a conflict for each and every sync. 19 guarantees a conflict for each and every sync.
20 - (dtucker) [openbsd-compat/strlcpy.c] Update from OpenBSD 1.8 -> 1.10.
20 21
2120051105 2220051105
22 - (djm) OpenBSD CVS Sync 23 - (djm) OpenBSD CVS Sync
@@ -3259,4 +3260,4 @@
3259 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 3260 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
3260 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 3261 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
3261 3262
3262$Id: ChangeLog,v 1.3962 2005/11/10 05:18:56 dtucker Exp $ 3263$Id: ChangeLog,v 1.3963 2005/11/10 05:26:17 dtucker Exp $
diff --git a/openbsd-compat/strlcpy.c b/openbsd-compat/strlcpy.c
index 736421202..679a5b291 100644
--- a/openbsd-compat/strlcpy.c
+++ b/openbsd-compat/strlcpy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strlcpy.c,v 1.8 2003/06/17 21:56:24 millert Exp $ */ 1/* $OpenBSD: strlcpy.c,v 1.10 2005/08/08 08:05:37 espie Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * 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_STRLCPY 22#ifndef HAVE_STRLCPY
23 23
24#if defined(LIBC_SCCS) && !defined(lint)
25static char *rcsid = "$OpenBSD: strlcpy.c,v 1.8 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
@@ -36,9 +32,9 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.8 2003/06/17 21:56:24 millert Exp
36size_t 32size_t
37strlcpy(char *dst, const char *src, size_t siz) 33strlcpy(char *dst, const char *src, size_t siz)
38{ 34{
39 register char *d = dst; 35 char *d = dst;
40 register const char *s = src; 36 const char *s = src;
41 register size_t n = siz; 37 size_t n = siz;
42 38
43 /* Copy as many bytes as will fit */ 39 /* Copy as many bytes as will fit */
44 if (n != 0 && --n != 0) { 40 if (n != 0 && --n != 0) {