projects
/
cumulus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement a string_printf utility function.
[cumulus.git]
/
main.cc
diff --git
a/main.cc
b/main.cc
index
91d1cef
..
5ac0f8c
100644
(file)
--- a/
main.cc
+++ b/
main.cc
@@
-292,9
+292,8
@@
int64_t dumpfile(int fd, dictionary &file_info, const string &path,
if (object_group == 0) {
o->set_group("data");
} else {
- char group[32];
- sprintf(group, "compacted-%d", object_group);
- o->set_group(group);
+ o->set_group(string_printf("compacted-%d",
+ object_group));
}
if (status == NULL)
status = "partial";