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:
parent
7787ace61a
commit
f33c6c6602
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user