aboutsummaryrefslogtreecommitdiff
path: root/src/lib/os_installation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/os_installation.c')
-rw-r--r--src/lib/os_installation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/os_installation.c b/src/lib/os_installation.c
index fadf2409..d822b553 100644
--- a/src/lib/os_installation.c
+++ b/src/lib/os_installation.c
@@ -144,8 +144,8 @@ get_path_from_module_filename ()
144 wchar_t *idx; 144 wchar_t *idx;
145 wchar_t *modulepath = NULL; 145 wchar_t *modulepath = NULL;
146 char *upath; 146 char *upath;
147 uint8_t *u8_string; 147 gchar *u8_string;
148 size_t u8_string_length; 148 glong u8_string_length;
149 149
150 /* This braindead function won't tell us how much space it needs, so 150 /* This braindead function won't tell us how much space it needs, so
151 * we start at 1024 and double the space up if it doesn't fit, until 151 * we start at 1024 and double the space up if it doesn't fit, until
@@ -199,7 +199,7 @@ get_path_from_module_filename ()
199 } 199 }
200 200
201 /* modulepath is GNUNET_PREFIX */ 201 /* modulepath is GNUNET_PREFIX */
202 u8_string = u16_to_u8 (modulepath, wcslen (modulepath), NULL, &u8_string_length); 202 u8_string = g_utf16_to_utf8 (modulepath, -1, NULL, &u8_string_length, NULL);
203 if (NULL == u8_string) 203 if (NULL == u8_string)
204 GNUNET_abort (); 204 GNUNET_abort ();
205 205
@@ -207,7 +207,7 @@ get_path_from_module_filename ()
207 memcpy (upath, u8_string, u8_string_length); 207 memcpy (upath, u8_string, u8_string_length);
208 upath[u8_string_length] = '\0'; 208 upath[u8_string_length] = '\0';
209 209
210 free (u8_string); 210 g_free (u8_string);
211 GNUNET_free (modulepath); 211 GNUNET_free (modulepath);
212 212
213 return upath; 213 return upath;