If the LD_LIBRARY_PATH for libclamunrar_iface longer than 128 chars,
it may be truncated and fail to load the RAR module.
| ... | ... |
@@ -97,7 +97,7 @@ static int is_rar_inited = 0; |
| 97 | 97 |
static void *load_module(const char *name, const char *featurename) |
| 98 | 98 |
{
|
| 99 | 99 |
HMODULE rhandle = NULL; |
| 100 |
- char modulename[128]; |
|
| 100 |
+ char modulename[512]; |
|
| 101 | 101 |
size_t i; |
| 102 | 102 |
|
| 103 | 103 |
/* |
| ... | ... |
@@ -156,7 +156,7 @@ static void *load_module(const char *name, const char *featurename) |
| 156 | 156 |
char *ld_library_path = NULL; |
| 157 | 157 |
const char *err; |
| 158 | 158 |
|
| 159 |
- char modulename[128]; |
|
| 159 |
+ char modulename[512]; |
|
| 160 | 160 |
size_t i; |
| 161 | 161 |
|
| 162 | 162 |
/* |