summaryrefslogtreecommitdiffstats
path: root/cmd-generic.c
Side-by-side diff
Diffstat (limited to 'cmd-generic.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cmd-generic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-generic.c b/cmd-generic.c
index ecb0b36..6714ef6 100644
--- a/cmd-generic.c
+++ b/cmd-generic.c
@@ -57,7 +57,7 @@ cmd_clientonly_parse(
return (0);
usage:
- usage(cause, "%s %s", self->entry->name, self->entry->usage);
+ xasprintf(cause, "usage: %s %s", self->entry->name, self->entry->usage);
self->entry->free(data);
return (-1);
@@ -129,7 +129,7 @@ cmd_sessiononly_parse(
return (0);
usage:
- usage(cause, "%s %s", self->entry->name, self->entry->usage);
+ xasprintf(cause, "usage: %s %s", self->entry->name, self->entry->usage);
self->entry->free(data);
return (-1);