diff --git a/server/internal/xorg/xorg.c b/server/internal/xorg/xorg.c index 2f129af..3868f5d 100644 --- a/server/internal/xorg/xorg.c +++ b/server/internal/xorg/xorg.c @@ -168,7 +168,7 @@ short XGetScreenRate() { void SetKeyboard(char *layout) { // TOOD: refactor, use native API. - char cmd[12] = "setxkbmap "; - strcat(cmd, layout); + char cmd[13] = "setxkbmap "; + strncat(cmd, layout, 2); system(cmd); }