avoid a harmless out of bounds read

in UCS table building
This commit is contained in:
John Cupitt 2019-08-29 15:42:05 +01:00
parent f135a6e292
commit 57d1d86885
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ make_hI( void )
for( i = 0; i < 361; i++ ) {
int k;
for( k = 0; k < 360 && hl[j][k] <= i; k++ )
for( k = 1; k < 360 && hl[j][k] <= i; k++ )
;
hI[j][i] = k - 1 + (i - hl[j][k - 1]) /