summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-21 00:55:32 +0200
committerMartin Mares <mj@ucw.cz>2000-04-21 00:55:32 +0200
commitf33c6c66020da3b10b27fba5585d20702b173c6f (patch)
tree8d9a81dc33c8ca4360b2840e0595a6ac77d39ed1
parent7787ace61ae41060e599ce52e8f0017750d350da (diff)
downloadbird-f33c6c66020da3b10b27fba5585d20702b173c6f.tar
bird-f33c6c66020da3b10b27fba5585d20702b173c6f.zip
Use xmalloc() instead of malloc().
-rw-r--r--client/commands.c2
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;
}