* src/font.c (Ffont_xlfd_name): Don't use strcpy for overlapping strings.

This commit is contained in:
YAMAMOTO Mitsuharu 2019-06-22 11:37:25 +09:00
parent 9b170060ba
commit a0797d32c9

View file

@ -4360,7 +4360,7 @@ the consecutive wildcards are folded into one. */)
while ((p1 = strstr (p0, "-*-*")))
{
strcpy (p1, p1 + 2);
memmove (p1, p1 + 2, (name + namelen + 1) - (p1 + 2));
namelen -= 2;
p0 = p1;
}