Commit 9d00d22c authored by Simon McVittie's avatar Simon McVittie

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

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307
parent d5ea45d7
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment