diff options
| author | Michael Albinus <michael.albinus@gmx.de> | 2008-04-13 16:29:06 +0000 |
|---|---|---|
| committer | Michael Albinus <michael.albinus@gmx.de> | 2008-04-13 16:29:06 +0000 |
| commit | 50442f798c6bb1432499a1a9adca6d90aa7a85dd (patch) | |
| tree | 1b41cafedbdeee19c9d0a8d2ca47c71f8c861b33 | |
| parent | 9acc60e5dfd776e7dda8857e4ff84ddb1d01f115 (diff) | |
| download | emacs-50442f798c6bb1432499a1a9adca6d90aa7a85dd.tar.gz | |
* dbusbind.c (dbus-get-unique-name): Remove extra copying of name string.
| -rw-r--r-- | src/dbusbind.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index 07711053560..fb49c5425f0 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c @@ -701,7 +701,7 @@ DEFUN ("dbus-get-unique-name", Fdbus_get_unique_name, Sdbus_get_unique_name, Lisp_Object bus; { DBusConnection *connection; - char name[DBUS_MAXIMUM_NAME_LENGTH]; + const char *name; /* Check parameters. */ CHECK_SYMBOL (bus); @@ -710,7 +710,7 @@ DEFUN ("dbus-get-unique-name", Fdbus_get_unique_name, Sdbus_get_unique_name, connection = xd_initialize (bus); /* Request the name. */ - strcpy (name, dbus_bus_get_unique_name (connection)); + name = dbus_bus_get_unique_name (connection); if (name == NULL) xsignal1 (Qdbus_error, build_string ("No unique name available")); @@ -729,8 +729,8 @@ offered by SERVICE. It must provide METHOD. If the parameter `:timeout' is given, the following integer TIMEOUT specifies the maximun number of milliseconds the method call must -return. The default value is 25.000. If the method call doesn't return -in time, a D-Bus error is raised. +return. The default value is 25.000. If the method call doesn't +return in time, a D-Bus error is raised. All other arguments ARGS are passed to METHOD as arguments. They are converted into D-Bus types via the following rules: |
