]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/boot/bootctl.c
memory-util: add mempmem_safe()
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Aug 2021 12:37:00 +0000 (14:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Aug 2021 12:55:50 +0000 (14:55 +0200)
commitd8782cc5c22d83f4a4305f40d85a84f47c89f314
tree2d012faf17df919ae3db288fe8ecd96b4250b438
parentb2efed520b51f71484e45289f9f34b611838cd4a
memory-util: add mempmem_safe()

This is like memmem_safe() but returns a pointer after the needle,
instead to the beginning of the needle.

This is then used at one place. Not much, but it makes me sleep safer at
night, as it avoids the manual counting done so far.
src/basic/memory-util.h
src/boot/bootctl.c