diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2024-01-25 07:03:50 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2024-01-25 07:03:50 +0000 |
| commit | 91b22ae21acd0b3171814b47b0dead027f8da779 (patch) | |
| tree | 6504247289226858803cded93ffff0dd8aafcad0 /spawn.c | |
| parent | wayland: 'mode' is unused when LOG_ENABLE_DBG is not set (diff) | |
Replace unchecked allocations with calls to xmalloc.h functions
Diffstat (limited to 'spawn.c')
| -rw-r--r-- | spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -145,7 +145,7 @@ spawn_expand_template(const struct config_spawn_template *template, expanded[len] = '\0'; \ } while (0) - *argv = malloc((*argc + 1) * sizeof((*argv)[0])); + *argv = xmalloc((*argc + 1) * sizeof((*argv)[0])); /* Expand the provided keys */ for (size_t i = 0; i < *argc; i++) { |
