idna: use memcpy not strncpy
Since we know the number of bytes we want to copy, just use memcpy instead of strncpy - this will be faster and hopefully will warn less on arm systems. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
c3794ba8aa
commit
24579fab5d
|
@ -701,7 +701,7 @@ static bool idna__is_ace(const char *label, size_t len)
|
|||
action; \
|
||||
return NSERROR_BAD_URL; \
|
||||
} else { \
|
||||
strncpy(fqdn_p, s, len); \
|
||||
memcpy(fqdn_p, s, len); \
|
||||
fqdn_p += len; \
|
||||
fqdn_len += len; \
|
||||
action; \
|
||||
|
|
Loading…
Reference in New Issue