fix more issues reported by coverity

This commit is contained in:
David Hrdlička
2020-01-15 18:48:22 +01:00
parent 94ba8ec38c
commit a575bd7e8b
9 changed files with 23 additions and 13 deletions

View File

@@ -323,7 +323,7 @@ pc_init(int argc, wchar_t *argv[])
uint32_t *uid, *shwnd;
/* Grab the executable's full path. */
plat_get_exe_name(exe_path, sizeof(exe_path)-1);
plat_get_exe_name(exe_path, sizeof_w(exe_path)-1);
p = plat_get_filename(exe_path);
*p = L'\0';