Fix gcc stringop-overflow warning/error in uloc.cpp

Description

Hi,

When building with LTO support and -Wall -Wextra -Werror, you might end up in your final program having build errors in ICO code:

gcc simply complains that it is not so efficient to use strncpy using the exact lenght of the string computed by memcpy, since it will check for end of string uselessly. Instead using memcpy has the same behavior and is more efficient since it doesn't check the end of string.

This is fixed in https://github.com/unicode-org/icu/pull/246

Cheers,
Romain

Assignee

Steven R. Loomis

Reporter

Anonymous

Components

Labels

None

Reviewer

None

Priority

major

Time Needed

None

Fix versions

Configure