1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/x11/XFree86-4/files/patch-j

16 lines
409 B
Plaintext
Raw Normal View History

--- programs/Xserver/xkb/ddxLoad.c~ 1999/12/05 01:22:09
+++ programs/Xserver/xkb/ddxLoad.c 2000/05/24 15:08:12
@@ -237,6 +237,13 @@
sprintf(keymap,"server-%s",display);
}
else {
+ if (strlen(names->keymap) > PATH_MAX - 1) {
+#ifdef DEBUG
+ ErrorF("name of keymap (%s) exceeds max length\n",
+ names->keymap);
+#endif
+ return False;
+ }
strcpy(keymap,names->keymap);
}