From f4c32acd052fbf25f66f2f104bb803969efedc67 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 29 Oct 2015 09:32:31 +0100 Subject: [PATCH] coverity scan CID 22515: out-of-bounds access increase buffer to stop coverity false positive --- src/study.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/study.c b/src/study.c index 9967719b3..f48b8176b 100644 --- a/src/study.c +++ b/src/study.c @@ -75,7 +75,7 @@ magic_t getmagicskill(const struct locale * lang) return (magic_t)token.i; } else { - char buffer[3]; + char buffer[8]; buffer[0] = s[0]; buffer[1] = s[1]; buffer[2] = '\0';