[PATCH] simplify ldap URL construction

Werner Koch wk at gnupg.org
Wed Apr 25 20:37:29 CEST 2012


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.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list