diff options
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r-- | src/util/os_installation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c index cf3c027e9..bc7e49512 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c | |||
@@ -173,7 +173,7 @@ get_path_from_module_filename () | |||
173 | real_pathlen = GetModuleFileNameW (dll_instance, modulepath, pathlen * sizeof (wchar_t)); | 173 | real_pathlen = GetModuleFileNameW (dll_instance, modulepath, pathlen * sizeof (wchar_t)); |
174 | } while (real_pathlen >= pathlen && pathlen < 16*1024); | 174 | } while (real_pathlen >= pathlen && pathlen < 16*1024); |
175 | if (real_pathlen >= pathlen) | 175 | if (real_pathlen >= pathlen) |
176 | GNUNET_abort (); | 176 | GNUNET_assert (0); |
177 | /* To be safe */ | 177 | /* To be safe */ |
178 | modulepath[real_pathlen] = '\0'; | 178 | modulepath[real_pathlen] = '\0'; |
179 | 179 | ||
@@ -215,7 +215,7 @@ get_path_from_module_filename () | |||
215 | /* modulepath is GNUNET_PREFIX */ | 215 | /* modulepath is GNUNET_PREFIX */ |
216 | u8_string = u16_to_u8 (modulepath, wcslen (modulepath), NULL, &u8_string_length); | 216 | u8_string = u16_to_u8 (modulepath, wcslen (modulepath), NULL, &u8_string_length); |
217 | if (NULL == u8_string) | 217 | if (NULL == u8_string) |
218 | GNUNET_abort (); | 218 | GNUNET_assert (0); |
219 | 219 | ||
220 | upath = GNUNET_malloc (u8_string_length + 1); | 220 | upath = GNUNET_malloc (u8_string_length + 1); |
221 | memcpy (upath, u8_string, u8_string_length); | 221 | memcpy (upath, u8_string, u8_string_length); |