pts: Use memchr(3) instead of strchr(3) to extract hash algorithm name
authorTobias Brunner <tobias@strongswan.org>
Tue, 1 Jul 2014 10:26:15 +0000 (12:26 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 1 Jul 2014 15:58:36 +0000 (17:58 +0200)
commit530d87be1bec8514507782e045cef064e248a916
tree16cbf0883c197a3bfe894424f2149b6fb0d8a7a2
parentf82d7aff85c5d8a2bd890424e9e5e5a2f2a39572
pts: Use memchr(3) instead of strchr(3) to extract hash algorithm name

The string read with read(2) might not be null terminated.
src/libpts/pts/pts_ima_event_list.c