summaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:47:50 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:49:52 +0200
commitb66a9e2f3376b4cb07ef4cc318f70a9c794f407a (patch)
treec4f7ef483ec2d2c7bac4f605d2aed0b3ab7b738d /client/commands.c
parent659f80f262a83d600d5f095fb8a03e912d3fbe64 (diff)
parent3f2c7600fa2e35b1028c755aa06092b5991e1a8e (diff)
Merge branch 'master' into int-new
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;
}