diff options
Diffstat (limited to 'utils/hp2ps/HpFile.c')
-rw-r--r-- | utils/hp2ps/HpFile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/hp2ps/HpFile.c b/utils/hp2ps/HpFile.c index 86cbfb2049..bdbf201503 100644 --- a/utils/hp2ps/HpFile.c +++ b/utils/hp2ps/HpFile.c @@ -332,7 +332,7 @@ GetHpTok(FILE *infp) * "thefloatish"). */ -static char numberstring[ NUMBER_LENGTH - 1 ]; +static char numberstring[ NUMBER_LENGTH + 1 ]; token GetNumber(FILE *infp) @@ -350,7 +350,7 @@ GetNumber(FILE *infp) ch = getc(infp); } - ASSERT(i < NUMBER_LENGTH); /* did not overflow */ + ASSERT(i <= NUMBER_LENGTH); /* did not overflow */ numberstring[ i ] = '\0'; |