commit - e04d74ad3b762f4439a965250181ee88385237ae
commit + 883251ca0582de1b02fdda59fcef2b2da1d84197
blob - 1c905513504f4a66749b6c861a20ef96aa3c457f
blob + 0ff6296e0608197b3432ad2285fd5735f04785d6
--- ChangeLog
+++ ChangeLog
ngIRCd - Next Generation IRC Server
- (c)2001-2004 by Alexander Barton,
+ (c)2001-2005 by Alexander Barton,
alex@barton.de, http://www.barton.de/
ngIRCd is free software and published under the
-- ChangeLog --
+ngircd 0.8.x (CVS)
+
+ - Fixed return values of our own implementation of strlcpy(). The code has
+ been taken from rsync and they fixed it, but we didn't until today :-/
+ It has only been used when the system didn't implement strlcpy by itself,
+ not on "modern" systems. Florian Westphal, <westphal@foo.fh-furtwangen.de>.
+
ngircd 0.8.1 (2004-12-25)
- Autoconf: Updated config.guess and config.sub
--
-$Id: ChangeLog,v 1.233.2.11 2004/12/25 00:20:57 alex Exp $
+$Id: ChangeLog,v 1.233.2.12 2005/01/18 09:09:05 alex Exp $
blob - f77527a09f068788d34a97c0ec53ad3c63c39f28
blob + 10527d03b27d9df0882ca12e63a4254ad89d3d9e
--- src/portab/strlcpy.c
+++ src/portab/strlcpy.c
#include "portab.h"
-static char UNUSED id[] = "$Id: strlcpy.c,v 1.2 2002/12/26 14:34:11 alex Exp $";
+static char UNUSED id[] = "$Id: strlcpy.c,v 1.2.4.1 2005/01/18 09:09:05 alex Exp $";
#include "imp.h"
#include <string.h>
* always null terminates. */
size_t len = strlen( src );
+ size_t ret = len;
- if( size <= 0 ) return len;
+ if( size <= 0 ) return 0;
if( len >= size ) len = size - 1;
memcpy( dst, src, len );
dst[len] = 0;
- return len;
+ return ret;
} /* strlcpy */
#endif