0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-08 12:18:42 +00:00

Use xmalloc() instead of malloc().

This commit is contained in:
Martin Mares 2000-04-20 22:55:32 +00:00
parent 7787ace61a
commit f33c6c6602

View File

@ -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;
}