Avoid possible array overflow. Reported by Madhu Kurup.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3804
This commit is contained in:
Nicholas Nethercote 2005-05-25 21:26:35 +00:00
parent b3b8913e6e
commit 1bfe4d6369

View File

@ -340,7 +340,7 @@ GetHpTok(infp)
* "thefloatish").
*/
static char numberstring[ NUMBER_LENGTH - 1 ];
static char numberstring[ NUMBER_LENGTH ];
token
GetNumber(infp)