# HG changeset patch # User melanson # Date 1073010713 0 # Node ID 033eeef90b2b710691b57af1d54fff72b09353a7 # Parent 49e46374baa43e6a3a9944ba29a1b5fee12febb1 off-by-1 error in the never-before-tested embedded string code diff -r 49e46374baa4 -r 033eeef90b2b svq1.c --- a/svq1.c Thu Jan 01 18:02:30 2004 +0000 +++ b/svq1.c Fri Jan 02 02:31:53 2004 +0000 @@ -579,7 +579,7 @@ seed = string_table[out[0]]; - for (i=1; i < out[0]; i++) { + for (i=1; i <= out[0]; i++) { out[i] = get_bits (bitbuf, 8) ^ seed; seed = string_table[out[i] ^ seed]; }