Eolian test: Fix test on hardened gentoo
Invalid snprintf, why declare MAX_PATH and then use PATH_MAX?
This commit is contained in:
parent
b8f7431b74
commit
d02ecd7d9d
|
@ -9,8 +9,6 @@
|
|||
#include "Eolian.h"
|
||||
#include "eolian_suite.h"
|
||||
|
||||
#define MAX_PATH 1024
|
||||
|
||||
#ifdef HAVE_EVIL
|
||||
#include "Evil.h"
|
||||
#endif
|
||||
|
@ -85,7 +83,7 @@ _eolian_gen_execute(const char *eo_filename, const char *output_filename)
|
|||
|
||||
START_TEST(eolian_dev_impl_code)
|
||||
{
|
||||
char output_filepath[MAX_PATH] = "";
|
||||
char output_filepath[PATH_MAX] = "";
|
||||
snprintf(output_filepath, PATH_MAX, "%s/object_impl.c",
|
||||
#ifdef HAVE_EVIL
|
||||
(char *)evil_tmpdir_get()
|
||||
|
|
Loading…
Reference in New Issue