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

MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2005-03-14 15:00:51 +00:00
parent 2f00593534
commit ee602fbb50

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");