]> git.ipfire.org Git - thirdparty/systemd.git/commit
logs-show: use memory_startswith() rather than startswith()
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Apr 2025 13:00:54 +0000 (15:00 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 May 2025 13:39:57 +0000 (15:39 +0200)
commit6427d0fbed998e5e306e95dfe227c8598a3e4ad1
treee5907b2df82642a494e1a4897eb82d5c310d40a8
parent010e2562dd1800641ab321402f9cf55cc778c1a7
logs-show: use memory_startswith() rather than startswith()

Let's be strict here: this data is conceptually not NUL terminated,
hence use memory_startswith() rather than startswith() (which implies
NUL termination). All other similar cases in logs-show.c got this right.
Fix the remaining three, too.
src/shared/logs-show.c