]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cconf: fix alternate section name
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 11 Mar 2009 22:24:57 +0000 (15:24 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 11 Mar 2009 22:24:57 +0000 (15:24 -0700)
src/cconf.cc

index 06e6f1be32d995d2226b5af4cdba89f788360c96..fdeb8ea8e969a1f16d5e7d4ed46eb575a72e6811 100644 (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;
   }