Be sure that class name storaed in 'class_name' is lower case.

MFC after:	1 week
This commit is contained in:
pjd 2005-03-14 15:00:51 +00:00
parent 7112e51413
commit 2762d2e8a6

View File

@ -519,6 +519,9 @@ set_class_name(void)
{
char *s1, *s2;
s1 = class_name;
for (; *s1 != '\0'; s1++)
*s1 = tolower(*s1);
gclass_name = malloc(strlen(class_name));
if (gclass_name == NULL)
errx(EXIT_FAILURE, "No memory");