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
Satoshi Asami 3103ffad6e Split up XFree86-4 into several pieces. Pretty green, please test with care.
Submitted by:			taguchi@tohoku.iij.ad.jp
Approved (in spirit) by:	jmz (XFree86 port maintainer)
2000-06-08 10:42:32 +00:00

14 lines
346 B
Plaintext

--- 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;
}