From: handa Date: Fri, 26 Jan 2007 05:23:53 +0000 (+0000) Subject: (STRDUP_LOWER): Don't ignore the tailing spaces. X-Git-Tag: FLT-base~143 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=c52d30be34c638ec5957e7827da7b186b4c142a9;p=m17n%2Fm17n-lib.git (STRDUP_LOWER): Don't ignore the tailing spaces. --- diff --git a/src/font-ft.c b/src/font-ft.c index e21bed9..a1b24a6 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -137,7 +137,6 @@ static int all_fonts_scaned; (s1) = alloca (len), (size) = len; \ for (p1 = (s1), p2 = (s2); *p2; p1++, p2++) \ *p1 = (*p2 >= 'A' && *p2 <= 'Z' ? *p2 + 'a' - 'A' : *p2); \ - while (p1 > (s1) && p1[-1] == ' ') p1--; \ *p1 = '\0'; \ } while (0)