From 0ef5099349fdb9075cfde8fbc7bf36f9648e327c Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 30 Sep 2008 21:05:16 +0000 Subject: [PATCH] * dbusbind.c (xd_signature): Use strcat instead of sprintf. --- src/ChangeLog | 4 ++++ src/dbusbind.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2e9e11f6dd4..8007e948323 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-09-30 Michael Albinus + + * dbusbind.c (xd_signature): Use strcat instead of sprintf. + 2008-09-30 Eli Zaretskii * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc. diff --git a/src/dbusbind.c b/src/dbusbind.c index 22e64bf0042..7c61de7a4d9 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c @@ -298,7 +298,7 @@ xd_signature (signature, dtype, parent_type, object) strcat (signature, x); elt = CDR_SAFE (XD_NEXT_VALUE (elt)); } - sprintf (signature, "%s%c", signature, DBUS_STRUCT_END_CHAR); + strcat (signature, DBUS_STRUCT_END_CHAR_AS_STRING); break; case DBUS_TYPE_DICT_ENTRY: @@ -335,7 +335,7 @@ xd_signature (signature, dtype, parent_type, object) CAR_SAFE (CDR_SAFE (XD_NEXT_VALUE (elt)))); /* Closing signature. */ - sprintf (signature, "%s%c", signature, DBUS_DICT_ENTRY_END_CHAR); + strcat (signature, DBUS_DICT_ENTRY_END_CHAR_AS_STRING); break; default: -- 2.39.5