mirror of
https://github.com/systemd/systemd.git
synced 2025-03-24 14:50:17 +03:00
journal: addition and multiplication do not commute
This commit is contained in:
parent
d94819c80e
commit
9a7800af08
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user