summaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/commands.c')
-rw-r--r--client/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/commands.c b/client/commands.c
index 226ae048..2dae23e1 100644
--- a/client/commands.c
+++ b/client/commands.c
@@ -60,7 +60,7 @@ cmd_build_tree(void)
if (!new)
{
int size = sizeof(struct cmd_node) + c-d;
- new = xmalloc(size);
+ new = malloc(size);
bzero(new, size);
*old->plastson = new;
old->plastson = &new->sibling;
@@ -314,7 +314,7 @@ cmd_expand(char *cmd)
puts("No such command. Press `?' for help.");
return NULL;
}
- b = xmalloc(strlen(n->cmd->command) + strlen(args) + 1);
+ b = malloc(strlen(n->cmd->command) + strlen(args) + 1);
sprintf(b, "%s%s", n->cmd->command, args);
return b;
}