about summary refs log tree commit diff stats
path: root/src/LYStyle.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-12-01 03:38:43 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-12-01 03:38:43 -0500
commit4525eb4b32fdf2124e246285af59a1e14ecbf551 (patch)
treeb4fa005bd9b3ff3f0973cb1ea9e5ac4243ec2a39 /src/LYStyle.c
parent45f1aadc261561566cd074da1d9b0fb21a6ad78c (diff)
downloadlynx-snapshots-4525eb4b32fdf2124e246285af59a1e14ecbf551.tar.gz
snapshot of project "lynx", label v2-8-3dev_16
Diffstat (limited to 'src/LYStyle.c')
-rw-r--r--src/LYStyle.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/LYStyle.c b/src/LYStyle.c
index 5b520a9d..9292af8c 100644
--- a/src/LYStyle.c
+++ b/src/LYStyle.c
@@ -1,6 +1,6 @@
 /* character level styles for Lynx
  * (c) 1996 Rob Partington -- donated to the Lyncei (if they want it :-)
- * @Id: LYStyle.c 1.34 Wed, 13 Oct 1999 08:24:23 -0600 dickey @
+ * @Id: LYStyle.c 1.35 Tue, 30 Nov 1999 20:33:02 -0700 dickey @
  */
 #include <HTUtils.h>
 #include <HTML.h>
@@ -204,11 +204,7 @@ where OBJECT is one of EM,STRONG,B,I,U,BLINK etc.\n\n"), buffer);
 	}
 	exit(1);
     }
-    {
-	char *i;
-	for (i = buffer; *i; i++)
-	    *i = tolower(*i);
-    }
+    strtolower(buffer);
     *tmp = '\0';
     element = buffer;
 
@@ -507,8 +503,7 @@ PUBLIC void TrimColorClass ARGS3(
 	    *end='\0';
     }
     *phcode = hash_code(lookfrom && *lookfrom ? lookfrom : &tmp[1]);
-    CTRACE((tfp, "CSS:%s (trimmed %s)\n",
-	   (styleclassname ? styleclassname : "<null>"), tmp));
+    CTRACE((tfp, "CSS:%s (trimmed %s)\n", NONNULL(styleclassname), tmp));
 }
 
 /* This function is designed as faster analog to TrimColorClass.