summaryrefslogtreecommitdiff
path: root/client/commands.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:29:04 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2016-05-12 21:44:27 +0200
commit3f2c7600fa2e35b1028c755aa06092b5991e1a8e (patch)
tree3c63bcea68883d1065ab1abdfbe3ebdbab250cf3 /client/commands.c
parent8e433d6a529a883d566dc1d5a4afe0f1e2750baf (diff)
We don't need bvsnprintf() in BIRD client
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;
}