diff options
author | John Voltz <john.voltz@gmail.com> | 2008-03-06 18:09:37 +0000 |
---|---|---|
committer | John Voltz <john.voltz@gmail.com> | 2008-03-06 18:09:37 +0000 |
commit | 759200ecb1f5fb56b0dcf07337b5fa947e98e06c (patch) | |
tree | c853ac1b70fc1a528751205ad25a998a23cf6ae3 /package/fontconfig/fontconfig-2.4.2-fc-lang.patch | |
parent | 703d58a4f5346c23a1dda47eec70b36df1d8b849 (diff) | |
download | buildroot-novena-759200ecb1f5fb56b0dcf07337b5fa947e98e06c.tar.gz buildroot-novena-759200ecb1f5fb56b0dcf07337b5fa947e98e06c.zip |
updated fontconfig
Diffstat (limited to 'package/fontconfig/fontconfig-2.4.2-fc-lang.patch')
-rw-r--r-- | package/fontconfig/fontconfig-2.4.2-fc-lang.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/fontconfig/fontconfig-2.4.2-fc-lang.patch b/package/fontconfig/fontconfig-2.4.2-fc-lang.patch new file mode 100644 index 000000000..d4d10db67 --- /dev/null +++ b/package/fontconfig/fontconfig-2.4.2-fc-lang.patch @@ -0,0 +1,33 @@ +--- fontconfig-2.4.2/fc-lang/fc-lang.orig.c 2007-02-03 13:39:49.000000000 -0700 ++++ fontconfig-2.4.2/fc-lang/fc-lang.c 2007-02-03 13:46:08.000000000 -0700 +@@ -116,6 +116,20 @@ + return f; + } + ++char* trim(char *s) ++{ ++ int len = strlen(s); ++ ++ /* nuke trailing whitespace */ ++ while (len > 0 && (isspace(s[len - 1]) || s[len - 1]=='\n')) ++ s[--len] = '\0'; ++ ++ /* skip leading whitespace */ ++ s += strspn(s, " \n\r\t\v"); ++ ++ return s; ++} ++ + /* + * build a single charset from a source file + * +@@ -142,8 +156,7 @@ + if (!file) + fatal (line, lineno, + "invalid syntax, expected: include filename"); +- while (isspace(*file)) +- file++; ++ file = trim(file); + f = scanopen (file); + if (!f) + fatal (file, 0, "can't open"); |