From: Zbigniew Jędrzejewski-Szmek Date: Thu, 3 Dec 2015 05:27:22 +0000 (-0500) Subject: journal: addition and multiplication do not commute X-Git-Tag: v229~238^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a7800af088cc013573310504ae76e325d44d4b4;p=thirdparty%2Fsystemd.git journal: addition and multiplication do not commute --- diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index fa5dee73c31..8b3a367632b 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;