diff options
-rw-r--r-- | odk/source/unoapploader/win/unoapploader.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/odk/source/unoapploader/win/unoapploader.c b/odk/source/unoapploader/win/unoapploader.c index 7a4f9e98e3de..1b02775165b9 100644 --- a/odk/source/unoapploader/win/unoapploader.c +++ b/odk/source/unoapploader/win/unoapploader.c @@ -72,9 +72,7 @@ int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, if ( path != NULL ) { - wchar_t cmd[ - MY_LENGTH(L"\"") + MAX_PATH + - MY_LENGTH(L"\\unoinfo.exe\" c++")]; + wchar_t cmd[32767]; /* hopefully does not overflow */ cmd[0] = L'"'; wcscpy(cmd + 1, path); |