1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/x11/XFree86-4-libraries/files/patch-s01

14 lines
346 B
Plaintext
Raw Normal View History

--- programs/Xserver/xkb/xkbInit.c.orig Mon Oct 5 05:02:55 1998
+++ programs/Xserver/xkb/xkbInit.c Tue May 23 16:52:19 2000
@@ -910,7 +910,8 @@
return 1;
}
else if (strncmp(argv[i], "-xkbmap", 7) == 0) {
- if(++i < argc) {
+ i++;
+ if ((i < argc) && (strlen(argv[i]) < PATH_MAX)) {
XkbInitialMap= argv[i];
return 2;
}