diff options
-rw-r--r-- | geometry.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, |