Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2024-08-23 14:01:08 +01:00
commit 13bd0e46db

View File

@ -55,6 +55,10 @@ layout_set_lookup(const char *name)
u_int i;
int matched = -1;
for (i = 0; i < nitems(layout_sets); i++) {
if (strcmp(layout_sets[i].name, name) == 0)
return (i);
}
for (i = 0; i < nitems(layout_sets); i++) {
if (strncmp(layout_sets[i].name, name, strlen(name)) == 0) {
if (matched != -1) /* ambiguous */