Commit 17102037 authored by Pierre Ynard's avatar Pierre Ynard Committed by Rémi Denis-Courmont

Fix sizeof misuse and variable uninitialization

Unbreaks start-up on WinCE.
Signed-off-by: default avatarRémi Denis-Courmont <rdenis@simphalempin.com>
parent 02eae249
......@@ -321,8 +321,8 @@ static void *module_Lookup( module_handle_t handle, const char *psz_function )
}
#elif defined(HAVE_DL_WINDOWS) && defined(UNDER_CE)
wchar_t wide[sizeof( psz_function ) + 1];
size_t i;
wchar_t wide[strlen( psz_function ) + 1];
size_t i = 0;
do
wide[i] = psz_function[i]; /* UTF-16 <- ASCII */
while( psz_function[i++] );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment