[gnome-keyring/wip/cosimoc/gdbus-fixes: 3/4] dbus: use g_memdup()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring/wip/cosimoc/gdbus-fixes: 3/4] dbus: use g_memdup()
- Date: Mon, 24 Aug 2015 15:48:13 +0000 (UTC)
commit f2c9ff5266b1bfd09de25f304af01c4f87c38e8f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Aug 15 12:57:59 2015 -0700
dbus: use g_memdup()
Instead of g_strndup(), for consistency with other similar code above.
daemon/dbus/gkd-secret-secret.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-secret.c b/daemon/dbus/gkd-secret-secret.c
index 691a535..7e22f9a 100644
--- a/daemon/dbus/gkd-secret-secret.c
+++ b/daemon/dbus/gkd-secret-secret.c
@@ -113,9 +113,9 @@ gkd_secret_secret_parse (GkdSecretService *service,
secret = g_slice_new0 (GkdSecretSecret);
secret->session = g_object_ref (session);
- secret->parameter = g_strndup (parameter, n_parameter);
+ secret->parameter = g_memdup (parameter, n_parameter);
secret->n_parameter = n_parameter;
- secret->value = g_strndup (value, n_value);
+ secret->value = g_memdup (value, n_value);
secret->n_value = n_value;
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]