This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
In Perl_my_clearenv(), under -DPERL_USE_SAFE_PUTENV, don't use
authorNicholas Clark <nick@ccl4.org>
Wed, 17 Oct 2007 16:06:21 +0000 (16:06 +0000)
committerNicholas Clark <nick@ccl4.org>
Wed, 17 Oct 2007 16:06:21 +0000 (16:06 +0000)
commit82d8bb4934a8ea558df654435885eafe94e09dc8
treed1c1af14c57b8da969c05db58664677d47d37625
parentd279ab826c469db5d93d3d728fdcf1acd9265665
In Perl_my_clearenv(), under -DPERL_USE_SAFE_PUTENV, don't use
strlcpy() to forcibly truncate a string to a known length, when
memcpy() and a write of '\0' will not only make the intent clear, but
also do that exact job more efficiently.

p4raw-id: //depot/perl@32125
util.c