From 4dbd8b4e02abeafdb8b0bea2e66dfd3a55a45fce Mon Sep 17 00:00:00 2001 From: Nishant Chaprana Date: Tue, 16 Aug 2016 12:42:28 +0530 Subject: [PATCH] [dbus-plugin] Using proper seperator in strtok_r ", " => "," Change-Id: Ia172a8aeb9cc238f825387a640a5ade42ac44e64 Signed-off-by: Nishant Chaprana --- packaging/wifi-direct-manager.spec | 2 +- plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/wifi-direct-manager.spec b/packaging/wifi-direct-manager.spec index 963ca22..236c43a 100644 --- a/packaging/wifi-direct-manager.spec +++ b/packaging/wifi-direct-manager.spec @@ -1,6 +1,6 @@ Name: wifi-direct-manager Summary: Wi-Fi Direct manger -Version: 1.2.193 +Version: 1.2.194 Release: 1 Group: Network & Connectivity/Wireless License: Apache-2.0 diff --git a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c index 2508f6e..6d67856 100644 --- a/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c +++ b/plugin/wpasupplicant/ctrl_iface_dbus/wfd-plugin-wpasupplicant.c @@ -5376,7 +5376,7 @@ static int __ws_compress_rdata(char *compressed, char *rdata, int qtype) } else if (qtype == WS_QTYPE_TXT) { - token = strtok_r(rdata, ", ", &temp); + token = strtok_r(rdata, ",", &temp); while (token) { WDP_LOGD("Token: [%s]", token); @@ -5388,7 +5388,7 @@ static int __ws_compress_rdata(char *compressed, char *rdata, int qtype) memcpy(&compressed[length], token, token_len); length += token_len; - token = strtok_r(NULL, ", ", &temp); + token = strtok_r(NULL, ",", &temp); } } else { WDP_LOGD("RDATA is NULL"); -- 2.7.4