diff options
author | marha <marha@users.sourceforge.net> | 2012-02-24 08:18:51 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-02-24 08:18:51 +0100 |
commit | 6f066fc9e28c33779b89e7e48e6437965dde9b77 (patch) | |
tree | b2b9767762bd559d1edd808820cb65a4e3330397 /fontconfig/src/fccfg.c | |
parent | 1b73fdf9c9aa2330380300d204fb47f512cfb6e2 (diff) | |
parent | 5fb4fb602bde5140dcea45464e3b70a49078ad2e (diff) | |
download | vcxsrv-6f066fc9e28c33779b89e7e48e6437965dde9b77.tar.gz vcxsrv-6f066fc9e28c33779b89e7e48e6437965dde9b77.tar.bz2 vcxsrv-6f066fc9e28c33779b89e7e48e6437965dde9b77.zip |
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'fontconfig/src/fccfg.c')
-rw-r--r-- | fontconfig/src/fccfg.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/fontconfig/src/fccfg.c b/fontconfig/src/fccfg.c index 09c59919d..9395f743d 100644 --- a/fontconfig/src/fccfg.c +++ b/fontconfig/src/fccfg.c @@ -2023,7 +2023,15 @@ FcConfigGlobMatch (const FcChar8 *glob, return FcTrue; /* short circuit another common case */ if (strchr ((char *) glob, '*') == 0) - string += strlen ((char *) string) - strlen ((char *) glob); + { + size_t l1, l2; + + l1 = strlen ((char *) string); + l2 = strlen ((char *) glob); + if (l1 < l2) + return FcFalse; + string += (l1 - l2); + } while (*string) { if (FcConfigGlobMatch (glob, string)) |