Eolian test: Fix test on hardened gentoo

Invalid snprintf, why declare MAX_PATH and then use PATH_MAX?
This commit is contained in:
Jean-Philippe Andre 2014-05-28 11:12:45 +09:00
parent b8f7431b74
commit d02ecd7d9d
1 changed files with 1 additions and 3 deletions

View File

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