changeset 98434:e5f33aa05b97

* dbusbind.c (xd_signature): Use strcat instead of sprintf.
author Michael Albinus <michael.albinus@gmx.de>
date Tue, 30 Sep 2008 21:00:37 +0000
parents 940e2c1cbc71
children 1da925ee8af6
files src/dbusbind.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dbusbind.c	Tue Sep 30 19:14:16 2008 +0000
+++ b/src/dbusbind.c	Tue Sep 30 21:00:37 2008 +0000
@@ -298,7 +298,7 @@
 	  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 @@
 			     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: