From 1d5e70da40cbf0ecfddc7171d851db2f043813bf Mon Sep 17 00:00:00 2001 From: Tim Konick Date: Fri, 7 Aug 2015 20:42:47 -0400 Subject: [PATCH] Posix compliant +1 to include null terminator --- yara.c | 2 +- yarac.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/yara.c b/yara.c index 0d938fb4e7..898e5ce6ad 100644 --- a/yara.c +++ b/yara.c @@ -45,7 +45,7 @@ limitations under the License. #define ERROR_COULD_NOT_CREATE_THREAD 100 #ifndef MAX_PATH -#define MAX_PATH 255 +#define MAX_PATH 256 #endif #ifndef min diff --git a/yarac.c b/yarac.c index 82cf172aef..9a86647a4c 100644 --- a/yarac.c +++ b/yarac.c @@ -37,7 +37,7 @@ limitations under the License. #include "config.h" #ifndef MAX_PATH -#define MAX_PATH 255 +#define MAX_PATH 256 #endif #define MAX_ARGS_EXT_VAR 32