mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
ea98d5a80b
Submitted by: Trevor Johnson <trevor@jpj.net> (patch-i) Doug Rabson <dfr@freebsd.org> (patch-j)
16 lines
409 B
Plaintext
16 lines
409 B
Plaintext
--- 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);
|
|
}
|