From: Lennart Poettering Date: Thu, 14 May 2015 09:30:59 +0000 (+0200) Subject: util: introduce memmem_safe() and make use of it X-Git-Tag: v226.4~1^2~389 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=3840736340c8fc5fe181630f6bc623a0f9f864df;hp=3840736340c8fc5fe181630f6bc623a0f9f864df util: introduce memmem_safe() and make use of it 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 ---