diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2004-11-01 12:51:52 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2004-11-01 12:51:52 +0000 |
commit | b4d4ebb4e4c360bece24cfbbd8a3734e236b948a (patch) | |
tree | 60f80bc709d84f9ae4ddcedffc533f906f54c5ce /handy.h | |
parent | dc750f2e2552556d058aca8bac0a882290acbc05 (diff) | |
download | perl-b4d4ebb4e4c360bece24cfbbd8a3734e236b948a.tar.gz |
Since strlcat/strlcpy are not argument/return value compatible
with strncat/strncpy, replace the misleading defines with comment
p4raw-id: //depot/perl@23455
Diffstat (limited to 'handy.h')
-rw-r--r-- | handy.h | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -159,17 +159,12 @@ typedef U64TYPE U64; # endif #endif -/* H.Merijn Brand [ 31 Oct 2004 ] - * Not (yet) used at top level, but mention them for metaconfig */ -#ifdef HAS_STRLCAT -# define STRNCAT strlcat -#else -# define STRNCAT strncat -#endif -#ifdef HAS_STRLCPY -# define STRNCPY strlcpy -#else -# define STRNCPY strncpy +/* H.Merijn Brand [ 01 Nov 2004 ] */ +#if defined(HAS_STRLCAT) || defined(HAS_STRLCPY) +/* Not (yet) used at top level, but mention them for metaconfig + * Read http://www.courtesan.com/todd/papers/strlcpy.html + * for the discussion of why replacing strncat/strncpy with + * strlcat/strlcpy would be wise */ #endif /* Mention I8SIZE, U8SIZE, I16SIZE, U16SIZE, I32SIZE, U32SIZE, |