This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
locale.c: don't use strcpy()
authorDavid Mitchell <davem@iabyn.com>
Tue, 24 May 2016 22:45:48 +0000 (23:45 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 24 May 2016 22:54:24 +0000 (23:54 +0100)
commit81547f2e05510b240d229ed703948ebd9a1a515a
tree645be587472ce0bbc9278fe8632fe6fe4a318b76
parent17f41037d4817b6618a903e12aa1377ae078f66a
locale.c: don't use strcpy()

A recent commit added a strcpy() to locale.c.

This is Frowned Upon, and was making porting/libperl.t fail.

Since PL_strxfrm_min_char appears to be a 3-byte buffer, I've just changed
it to manually copy 3 individual bytes - which is probably more efficient
than a full-blown Copy(). But I haven't looked closely at whether this is
correct - this is more of quick fix to get smoking passing again.
locale.c