From 9d027b02b9723493f66b94bba648e20d48e73b6f Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 9 Jul 2014 05:38:35 +0200 Subject: Static Code Analysis : fix usage of strncpy and sscanf. --- src/Common/Keyfiles.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Common') diff --git a/src/Common/Keyfiles.h b/src/Common/Keyfiles.h index 78a8fd53..9ba5b6e8 100644 --- a/src/Common/Keyfiles.h +++ b/src/Common/Keyfiles.h @@ -20,7 +20,7 @@ extern "C" { typedef struct KeyFileStruct { - char FileName[MAX_PATH]; + char FileName[MAX_PATH + 1]; struct KeyFileStruct *Next; } KeyFile; -- cgit v1.2.3