dbus/dbus dbus-sysdeps.c,1.122,1.123
Ralf Habacker
rhabacker at kemper.freedesktop.org
Sat May 19 08:39:04 PDT 2007
Update of /cvs/dbus/dbus/dbus
In directory kemper:/tmp/cvs-serv23464/dbus
Modified Files:
dbus-sysdeps.c
Log Message:
* dbus/dbus-sysdeps.c (_dbus_setenv): win32 requires 'varname=' to unset a environment variable.
Index: dbus-sysdeps.c
===================================================================
RCS file: /cvs/dbus/dbus/dbus/dbus-sysdeps.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -d -r1.122 -r1.123
--- dbus-sysdeps.c 16 Mar 2007 21:56:33 -0000 1.122
+++ dbus-sysdeps.c 19 May 2007 15:39:01 -0000 1.123
@@ -120,11 +120,14 @@
* will get upset about.
*/
- putenv_value = malloc (len + 1);
+ putenv_value = malloc (len + 2);
if (putenv_value == NULL)
return FALSE;
strcpy (putenv_value, varname);
+#if defined(DBUS_WIN)
+ strcat (putenv_value, "=");
+#endif
return (putenv (putenv_value) == 0);
#endif
@@ -594,6 +597,10 @@
ascii_strtod (const char *nptr,
char **endptr)
{
+ /* FIXME: The Win32 C library's strtod() doesn't handle hex.
+ * Presumably many Unixes don't either.
+ */
+
char *fail_pos;
double val;
struct lconv *locale_data;
More information about the dbus-commit
mailing list