cconf: fix alternate section name

This commit is contained in:
Yehuda Sadeh 2009-03-11 15:24:57 -07:00
parent 24a4c3696a
commit b7bd0315f1

View File

@ -92,7 +92,7 @@ int main(int argc, const char **argv)
name = (char *)malloc(strlen(type) + strlen(id) + 2);
sprintf(name, "%s.%s", type, id);
alt_name = (char *)malloc(strlen(type) + strlen(id) + 1);
sprintf(name, "%s%s", type, id);
sprintf(alt_name, "%s%s", type, id);
} else {
name = (char *)type;
}