[patch] acquire service error message
Matthew Rickard
mjricka at epoch.ncsc.mil
Fri Aug 6 11:03:36 PDT 2004
It looks like the error message handling from the acquire service checks
isn't getting the char* data from the DBusString before trying to print
it. The following patch fixes this.
Index: dbus/bus/services.c
===================================================================
RCS file: /cvs/dbus/dbus/bus/services.c,v
retrieving revision 1.22
diff -u -r1.22 services.c
--- dbus/bus/services.c 30 Jul 2004 05:59:34 -0000 1.22
+++ dbus/bus/services.c 6 Aug 2004 17:51:46 -0000
@@ -315,7 +315,7 @@
bus_connection_is_active (connection) ?
bus_connection_get_name (connection) :
"(inactive)",
- service_name);
+ _dbus_string_get_const_data (service_name));
goto out;
}
@@ -328,7 +328,7 @@
bus_connection_is_active (connection) ?
bus_connection_get_name (connection) :
"(inactive)",
- service_name);
+ _dbus_string_get_const_data (service_name));
goto out;
}
More information about the dbus
mailing list