diff options
Diffstat (limited to 'lib/libX11/modules/om/generic/omGeneric.c')
-rw-r--r-- | lib/libX11/modules/om/generic/omGeneric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libX11/modules/om/generic/omGeneric.c b/lib/libX11/modules/om/generic/omGeneric.c index 406cec93d..370072f38 100644 --- a/lib/libX11/modules/om/generic/omGeneric.c +++ b/lib/libX11/modules/om/generic/omGeneric.c @@ -688,7 +688,7 @@ parse_omit_name( length = strlen (pattern); - if (length > XLFD_MAX_LEN) + if (length > XLFD_MAX_LEN - 1) return -1; strcpy(buf, pattern); |