Skip to content

Commit

Permalink
Posix compliant +1 to include null terminator
Browse files Browse the repository at this point in the history
  • Loading branch information
tijko committed Aug 8, 2015
1 parent 14dbf62 commit 1d5e70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yara.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion yarac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d5e70d

Please sign in to comment.