mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
use memcpy rather than strncpy to avoid compiler warning
This commit is contained in:
parent
679272b50c
commit
8141fe03f7
1 changed files with 2 additions and 2 deletions
|
@ -338,8 +338,8 @@ static void GSSetupEncodingTable(void)
|
|||
*/
|
||||
l = strlen(entry->iconv);
|
||||
lossy = malloc(l + 11);
|
||||
strncpy(lossy, entry->iconv, l);
|
||||
strncpy(lossy + l, "//TRANSLIT", 11);
|
||||
memcpy(lossy, entry->iconv, l);
|
||||
memcpy(lossy + l, "//TRANSLIT", 11);
|
||||
c = iconv_open(lossy, UNICODE_ENC);
|
||||
if (c == (iconv_t)-1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue