diff options
| author | Tobin Ehlis <tobine@ad.corp.google.com> | 2016-06-07 06:07:13 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-06-20 14:32:12 -0600 |
| commit | 72c0fc3104aa597c1db05d5fc9f1690b6d2b0410 (patch) | |
| tree | b182ee0a1249e6fe88e533e728918c4404c15c7e | |
| parent | d5d2f7606389a2ba9d27e23899c0ded782eb7559 (diff) | |
| download | usermoji-72c0fc3104aa597c1db05d5fc9f1690b6d2b0410.tar.xz | |
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.
| -rw-r--r-- | loader/vk_loader_platform.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h index c94e33c0..a93bd6f0 100644 --- a/loader/vk_loader_platform.h +++ b/loader/vk_loader_platform.h @@ -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) { |
