summaryrefslogtreecommitdiff
path: root/src/journal
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-12-03 00:27:22 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-12-03 09:14:01 -0500
commit9a7800af088cc013573310504ae76e325d44d4b4 (patch)
tree8871a3f4c36a455798eb87dc8f007aa2e6a9db4f /src/journal
parentd94819c80e8262310ec6a49c406633ac122636ad (diff)
journal: addition and multiplication do not commute
Diffstat (limited to 'src/journal')
-rw-r--r--src/journal/journal-send.c4
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;