summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--geometry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/geometry.c b/geometry.c
index 50df5eb..241f8d9 100644
--- a/geometry.c
+++ b/geometry.c
@@ -2570,8 +2570,8 @@ HandleOverlayDef(OverlayDef * def,
}
return False;
}
- strncpy(key->over, keyDef->over, XkbKeyNameLength);
- strncpy(key->under, keyDef->under, XkbKeyNameLength);
+ strncpy(key->over, keyDef->over, sizeof(key->over));
+ strncpy(key->under, keyDef->under, sizeof(key->under));
key->sectionRow = _GOK_UnknownRow;
key->overlayRow = _GOK_UnknownRow;
ol.keys = (OverlayKeyInfo *) AddCommonInfo(&ol.keys->defs,