diff options
author | Rich Felker <dalias@aerifal.cx> | 2006-10-05 09:57:31 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2006-10-05 09:57:31 +0000 |
commit | 8de900bc1d0f5162a828541c45f21e6d28cdc41a (patch) | |
tree | 7d2bd781d2fe0a4bfc7534ff1a706a9c4a51910f | |
parent | e617ed8f3b9152b52d5b0d358682a4a0347caf8a (diff) |
10l mistake, caused some combining chars to corrupt badly
-rw-r--r-- | comb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -187,7 +187,7 @@ int uu_combine_involution(unsigned b, unsigned c) const unsigned short (*r)[2]; for (i=0; scripts[i].l; i++) if (b - scripts[i].a <= scripts[i].l) - for (r = scripts[i].r; r[0][0]; code += r++[0][1]) + for (r = scripts[i].r; r[0][0]; code += r++[0][1]+1) if (c - r[0][0] <= r[0][1]) return c - r[0][0] + code; else if (c - code <= r[0][1]) |