tests: Fix issue when path to unrar module is very long

If the LD_LIBRARY_PATH for libclamunrar_iface longer than 128 chars,
it may be truncated and fail to load the RAR module.
pull/1316/head
Micah Snyder 10 months ago
parent 6c0d644a3e
commit 287d8d830f
No known key found for this signature in database
GPG Key ID: 3449E631914956D0
  1. 4
      libclamav/others.c

@ -97,7 +97,7 @@ static int is_rar_inited = 0;
static void *load_module(const char *name, const char *featurename)
{
HMODULE rhandle = NULL;
char modulename[128];
char modulename[512];
size_t i;
/*
@ -156,7 +156,7 @@ static void *load_module(const char *name, const char *featurename)
char *ld_library_path = NULL;
const char *err;
char modulename[128];
char modulename[512];
size_t i;
/*

Loading…
Cancel
Save