From 4ac54f20c07ad0fc8c68d8844f059db4ba967e03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fridrich=20=C5=A0trba?= Date: Wed, 21 Apr 2010 12:51:17 +0200 Subject: [PATCH] A little bit more efficient version of _dbus_replace_install_prefix --- dbus/dbus-sysdeps-win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 347cf84cf..ffdb2d6f8 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2074,10 +2074,10 @@ _dbus_get_install_root(char *prefix, int len); const char * _dbus_replace_install_prefix (const char *configure_time_path) { - static char retval[1000]; #ifndef DBUS_PREFIX - strcpy (retval, configure_time_path); + return configure_time_path; #else + static char retval[1000]; static char runtime_prefix[1000]; int len = 1000; int i; @@ -2104,8 +2104,8 @@ _dbus_replace_install_prefix (const char *configure_time_path) if(retval[i] == '\\') retval[i] = '/'; } -#endif return retval; +#endif } #if !defined (DBUS_DISABLE_ASSERT) || defined(DBUS_BUILD_TESTS) -- 2.47.3