From f33c6c66020da3b10b27fba5585d20702b173c6f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 20 Apr 2000 22:55:32 +0000 Subject: [PATCH] Use xmalloc() instead of malloc(). --- client/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }