forked from github/server
coverity scan CID 22515: out-of-bounds access
increase buffer to stop coverity false positive
This commit is contained in:
parent
55b3bfd90e
commit
f4c32acd05
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue