[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/dbusbind.c,v
From: |
Michael Albinus |
Subject: |
[Emacs-diffs] Changes to emacs/src/dbusbind.c,v |
Date: |
Mon, 21 Jul 2008 04:27:38 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Michael Albinus <albinus> 08/07/21 04:27:38
Index: dbusbind.c
===================================================================
RCS file: /sources/emacs/emacs/src/dbusbind.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- dbusbind.c 13 Jul 2008 15:06:37 -0000 1.27
+++ dbusbind.c 21 Jul 2008 04:27:38 -0000 1.28
@@ -1314,6 +1314,7 @@
DBusConnection *connection;
int i;
char rule[DBUS_MAXIMUM_MATCH_RULE_LENGTH];
+ char x[DBUS_MAXIMUM_MATCH_RULE_LENGTH];
DBusError derror;
/* Check parameters. */
@@ -1366,17 +1367,24 @@
/* Add unique name and path to the rule if they are non-nil. */
if (!NILP (uname))
- sprintf (rule, "%s,sender='%s'", rule, SDATA (uname));
+ {
+ sprintf (x, ",sender='%s'", SDATA (uname));
+ strcat (rule, x);
+ }
if (!NILP (path))
- sprintf (rule, "%s,path='%s'", rule, SDATA (path));
+ {
+ sprintf (x, ",path='%s'", SDATA (path));
+ strcat (rule, x);
+ }
/* Add arguments to the rule if they are non-nil. */
for (i = 6; i < nargs; ++i)
if (!NILP (args[i]))
{
CHECK_STRING (args[i]);
- sprintf (rule, "%s,arg%d='%s'", rule, i-6, SDATA (args[i]));
+ sprintf (x, ",arg%d='%s'", i-6, SDATA (args[i]));
+ strcat (rule, x);
}
/* Add the rule to the bus. */