diff options
author | Martin Mares <mj@ucw.cz> | 2000-04-20 22:55:32 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-04-20 22:55:32 +0000 |
commit | f33c6c66020da3b10b27fba5585d20702b173c6f (patch) | |
tree | 8d9a81dc33c8ca4360b2840e0595a6ac77d39ed1 /client/commands.c | |
parent | 7787ace61ae41060e599ce52e8f0017750d350da (diff) |
Use xmalloc() instead of malloc().
Diffstat (limited to 'client/commands.c')
-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 5c60df8c..697cff6d 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; } |