mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2024-11-23 15:20:52 +00:00
loader: Increase error message length
120 chars in error message is very conservative as error prefix and LVL pathname alone are near 100 chars. This can easily cause layer path to get cut off which makes for a confusing error message. Bumping this to 164 chars to account for most reasonable layer names.
This commit is contained in:
parent
e335c40509
commit
a8078da7c0
@ -352,8 +352,8 @@ loader_platform_open_library(const char *libPath) {
|
||||
return LoadLibrary(libPath);
|
||||
}
|
||||
static char *loader_platform_open_library_error(const char *libPath) {
|
||||
static char errorMsg[120];
|
||||
snprintf(errorMsg, 119, "Failed to open dynamic library \"%s\"", libPath);
|
||||
static char errorMsg[164];
|
||||
snprintf(errorMsg, 163, "Failed to open dynamic library \"%s\"", libPath);
|
||||
return errorMsg;
|
||||
}
|
||||
static void loader_platform_close_library(loader_platform_dl_handle library) {
|
||||
|
Loading…
Reference in New Issue
Block a user