mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix prev cleanup.
This commit is contained in:
parent
55f6387214
commit
88ea88feeb
@ -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 New Issue
Block a user