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.