diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-05-12 21:29:04 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2016-05-12 21:44:27 +0200 |
commit | 3f2c7600fa2e35b1028c755aa06092b5991e1a8e (patch) | |
tree | 3c63bcea68883d1065ab1abdfbe3ebdbab250cf3 /client/commands.c | |
parent | 8e433d6a529a883d566dc1d5a4afe0f1e2750baf (diff) |
We don't need bvsnprintf() in BIRD client
Diffstat (limited to 'client/commands.c')
-rw-r--r-- | client/commands.c | 4 |
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; } |