Commit a0797d32 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

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

parent 9b170060
Pipeline #2201 failed with stage
in 50 minutes and 46 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment