[PATCH] simplify ldap URL construction
jim at meyering.net
Thu Apr 26 15:57:20 CEST 2012
Jim Meyering wrote:
> Werner Koch wrote:
>> On Wed, 25 Apr 2012 17:44, jim at meyering.net said:
>>> - strncpy( p, sep, slen );
>>> - p += slen;
>>> + p = stpncpy( p, sep, slen );
>> Well, stpncpy is not portable. However it looks very useful.
> Good catch.
> But gnupg uses gnulib, and there's a stpncpy module to ensure
> that it's available.
gnulib's stpcpy module is also good to use, since some systems lack it:
This function is missing on some platforms:
More information about the Gnupg-devel