sync with OpenBSD -current

This commit is contained in:
purplerain 2024-08-06 22:23:11 +00:00
parent acb2a22980
commit 455fea1627
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
229 changed files with 25075 additions and 13981 deletions

View file

@ -688,7 +688,7 @@ parse_omit_name(
length = strlen (pattern);
if (length > XLFD_MAX_LEN)
if (length > XLFD_MAX_LEN - 1)
return -1;
strcpy(buf, pattern);