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:
Tobin Ehlis 2016-06-07 06:07:13 -06:00 committed by Tobin Ehlis
parent e335c40509
commit a8078da7c0

View File

@ -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) {