From 14573820ec4d0c6e48e5804ab3c862702901678f Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 30 Nov 2007 18:10:22 +0000 Subject: [PATCH] Fix rev 1.49 --- libraries/liblutil/utils.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index f5727fa656..8e87ce44cc 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -638,9 +638,6 @@ scale( int new, lutil_int_decnum *prev, unsigned char *tmp ) part >>= 8; } } - j++; - prev->beg += j; - prev->len -= j; } out = tmp + prev->bufsiz - 1; @@ -651,11 +648,9 @@ scale( int new, lutil_int_decnum *prev, unsigned char *tmp ) if (!new ) break; } - if ( !prev->len ) { - prev->beg += i; - prev->len = -i; - prev->len++; - } + i--; + prev->beg = prev->bufsiz + i; + prev->len = -i; AC_MEMCPY( prev->buf+prev->beg, tmp+prev->beg, prev->len ); } -- 2.39.5