Use ISO C strchr() instead of BSD index()

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307
This commit is contained in:
Simon McVittie 2014-09-25 11:46:39 +01:00
parent d5ea45d735
commit 9d00d22c3f

View file

@ -22,7 +22,9 @@
*/
#include <config.h>
#include <strings.h>
#include <string.h>
#include "signals.h"
#include "services.h"
#include "utils.h"
@ -130,7 +132,7 @@ append_key_and_escaped_value (DBusString *str, const char *token, const char *va
while (*p != '\0')
{
const char *next = index (p, '\'');
const char *next = strchr (p, '\'');
if (next)
{