diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-10-13 12:07:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-10-14 15:57:52 +0200 |
commit | 698cec65c43e8336265f25ee39a5b75eabd081df (patch) | |
tree | 69cbdf9d13d2c72fb7523b64e14750c7252ffa9a /src/shared/nscd-flush.c | |
parent | alloca-util: drop two unnecessary casts (diff) | |
download | systemd-698cec65c43e8336265f25ee39a5b75eabd081df.tar.xz systemd-698cec65c43e8336265f25ee39a5b75eabd081df.zip |
tree-wide: port all calls to alloca() to alloca_safe()
Diffstat (limited to '')
-rw-r--r-- | src/shared/nscd-flush.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/nscd-flush.c b/src/shared/nscd-flush.c index 19e16d9345..0655030633 100644 --- a/src/shared/nscd-flush.c +++ b/src/shared/nscd-flush.c @@ -35,7 +35,7 @@ static int nscd_flush_cache_one(const char *database, usec_t end) { l = strlen(database); req_size = offsetof(struct nscdInvalidateRequest, dbname) + l + 1; - req = alloca(req_size); + req = alloca_safe(req_size); *req = (struct nscdInvalidateRequest) { .version = 2, .type = 10, |