diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-12-03 06:27:22 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-12-03 15:14:01 +0100 |
commit | 9a7800af088cc013573310504ae76e325d44d4b4 (patch) | |
tree | 8871a3f4c36a455798eb87dc8f007aa2e6a9db4f /src/journal/journal-send.c | |
parent | test-journal-send: no need to set log level (diff) | |
download | systemd-9a7800af088cc013573310504ae76e325d44d4b4.tar.xz systemd-9a7800af088cc013573310504ae76e325d44d4b4.zip |
journal: addition and multiplication do not commute
Diffstat (limited to '')
-rw-r--r-- | src/journal/journal-send.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index fa5dee73c3..8b3a367632 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -225,8 +225,8 @@ _public_ int sd_journal_sendv(const struct iovec *iov, int n) { assert_return(iov, -EINVAL); assert_return(n > 0, -EINVAL); - w = alloca(sizeof(struct iovec) * n * 5 + 3); - l = alloca(sizeof(uint64_t) * n); + w = newa(struct iovec, n * 5 + 3); + l = newa(uint64_t, n); for (i = 0; i < n; i++) { char *c, *nl; |