From 62e34428d357f609be17a866638bedb45f935d8e Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sat, 2 May 1998 23:39:11 -0400 Subject: snapshot of project "lynx", label v2-8-1dev_8 --- WWW/Library/Implementation/HTFile.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'WWW/Library/Implementation/HTFile.c') diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c index 0e405b82..c809ff63 100644 --- a/WWW/Library/Implementation/HTFile.c +++ b/WWW/Library/Implementation/HTFile.c @@ -80,6 +80,7 @@ #include #include #include +#include #include #include @@ -867,12 +868,10 @@ PUBLIC HTFormat HTCharsetFormat ARGS3( char *cp = NULL, *cp1, *cp2, *cp3 = NULL, *cp4; BOOL chartrans_ok = FALSE; int chndl = -1; - int i; FREE(anchor->charset); StrAllocCopy(cp, format->name); - for (i = 0; cp[i]; i++) - cp[i] = TOLOWER(cp[i]); + LYLowerCase(cp); if (((cp1 = strchr(cp, ';')) != NULL) && (cp2 = strstr(cp1, "charset")) != NULL) { CTRACE(tfp, "HTCharsetFormat: Extended MIME Content-Type is %s\n", -- cgit 1.4.1-2-gfad0