mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 22:20:28 -05:00
Fix prev cleanup.
This commit is contained in:
parent
55f6387214
commit
88ea88feeb
1 changed files with 2 additions and 2 deletions
|
|
@ -640,8 +640,8 @@ scale( int new, lutil_int_decnum *prev, unsigned char *tmp )
|
|||
}
|
||||
}
|
||||
|
||||
out = tmp + prev->bufsiz - 1;
|
||||
for ( i = 0; new ; i-- ) {
|
||||
out = tmp + prev->bufsiz;
|
||||
for ( i = -1; new ; i-- ) {
|
||||
new += out[i];
|
||||
out[i] = new & 0xff;
|
||||
new >>= 8;
|
||||
|
|
|
|||
Loading…
Reference in a new issue