summaryrefslogtreecommitdiff
path: root/src/archives.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/archives.c')
-rw-r--r--src/archives.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/archives.c b/src/archives.c
index d5271107b..0ebb77d5e 100644
--- a/src/archives.c
+++ b/src/archives.c
@@ -1463,10 +1463,7 @@ archivefiles(const char *const *argv)
for (ap = argv; *ap; ap++) {
if (strchr(FIND_EXPRSTARTCHARS,(*ap)[0])) {
- char *a;
-
- m_asprintf(&a, "./%s", *ap);
- command_add_arg(&cmd, a);
+ command_add_arg(&cmd, str_fmt("./%s", *ap));
} else {
command_add_arg(&cmd, (const char *)*ap);
}