summaryrefslogtreecommitdiffstats
path: root/client/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/commands.c')
-rw-r--r--client/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/commands.c b/client/commands.c
index 5c60df8..697cff6 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -297,7 +297,7 @@ cmd_expand(char *cmd)
puts("No such command.");
return NULL;
}
- b = malloc(strlen(n->cmd->command) + strlen(args) + 1);
+ b = xmalloc(strlen(n->cmd->command) + strlen(args) + 1);
sprintf(b, "%s%s", n->cmd->command, args);
return b;
}