sd-journal: use new() instead of newa() if too many items will be added
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Oct 2022 06:45:55 +0000 (15:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Oct 2022 16:30:30 +0000 (01:30 +0900)
commit52bcf45a6c2b25e58b0a798b0cdc3c4d0d5cc961
tree7bf148bc89b5c82cd3c5bfc8cffea305950e55a5
parent80c5cb825af431451d54cbb5abbd92e9418ab70b
sd-journal: use new() instead of newa() if too many items will be added

For safety, as the size may not be under our control.
src/libsystemd/sd-journal/journal-file.c