From 8de900bc1d0f5162a828541c45f21e6d28cdc41a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 5 Oct 2006 09:57:31 +0000 Subject: 10l mistake, caused some combining chars to corrupt badly --- comb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- cgit v1.2.1