diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-21 00:55:32 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-21 00:55:32 +0200 |
commit | f33c6c66020da3b10b27fba5585d20702b173c6f (patch) | |
tree | 8d9a81dc33c8ca4360b2840e0595a6ac77d39ed1 /client | |
parent | 7787ace61ae41060e599ce52e8f0017750d350da (diff) | |
download | bird-f33c6c66020da3b10b27fba5585d20702b173c6f.tar bird-f33c6c66020da3b10b27fba5585d20702b173c6f.zip |
Use xmalloc() instead of malloc().
Diffstat (limited to 'client')
-rw-r--r-- | client/commands.c | 2 |
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; } |