summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-05 09:57:31 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-05 09:57:31 +0000
commit8de900bc1d0f5162a828541c45f21e6d28cdc41a (patch)
tree7d2bd781d2fe0a4bfc7534ff1a706a9c4a51910f
parente617ed8f3b9152b52d5b0d358682a4a0347caf8a (diff)
10l mistake, caused some combining chars to corrupt badly
-rw-r--r--comb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/comb.c b/comb.c
index c1d6ea3..08a6fa6 100644
--- a/comb.c
+++ b/comb.c
@@ -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])