mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-01 17:30:13 +01:00
Use ISO C strchr() instead of BSD index()
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=24307
This commit is contained in:
parent
d5ea45d735
commit
9d00d22c3f
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue