chiark / gitweb /
util: introduce memmem_safe() and make use of it
authorLennart Poettering <lennart@poettering.net>
Thu, 14 May 2015 09:30:59 +0000 (11:30 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 08:56:08 +0000 (09:56 +0100)
GNU memmem() requires a nonnull first parameter. Let's introduce
memmem_safe() that removes this restriction for zero-length parameters,
and make use of it where appropriate.

http://lists.freedesktop.org/archives/systemd-devel/2015-May/031705.html


No differences found