[PATCH] simplify ldap URL construction

Jim Meyering jim at meyering.net
Wed Apr 25 20:44:15 CEST 2012


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.



More information about the Gnupg-devel mailing list