mirror of
https://github.com/ceph/ceph
synced 2025-03-05 15:58:41 +00:00
cconf: fix alternate section name
This commit is contained in:
parent
24a4c3696a
commit
b7bd0315f1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user