aboutsummaryrefslogtreecommitdiff
path: root/walker.c
diff options
context:
space:
mode:
Diffstat (limited to 'walker.c')
-rw-r--r--walker.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/walker.c b/walker.c
index b8a5441d6..b929dcc6c 100644
--- a/walker.c
+++ b/walker.c
@@ -286,8 +286,7 @@ int walker_fetch(struct walker *walker, int targets, char **target,
goto done;
}
if (write_ref_log_details) {
- msg = xmalloc(strlen(write_ref_log_details) + 12);
- sprintf(msg, "fetch from %s", write_ref_log_details);
+ msg = xstrfmt("fetch from %s", write_ref_log_details);
} else {
msg = NULL;
}