coverity scan CID 22515: out-of-bounds access

increase buffer to stop coverity false positive
This commit is contained in:
Enno Rehling 2015-10-29 09:32:31 +01:00
parent 55b3bfd90e
commit f4c32acd05
1 changed files with 1 additions and 1 deletions

View File

@ -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';