mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#325: use simple pointer arithmetic to avoid problems on systems
with odd pointer representations (such as Cray T90).
This commit is contained in:
parent
cfc1981b5e
commit
7dbfbd2865
2 changed files with 3 additions and 1 deletions
1
CHANGES
1
CHANGES
|
|
@ -6,6 +6,7 @@ Changes included in OpenLDAP 1.2 Release Engineering
|
|||
Fixed slapd li_nextid_file uninitialized bug
|
||||
Fixed -lldap templates y2k bug (ITS#294)
|
||||
Fixed ldbm db_appinit to use u_int32_t instead of int (ITS#295)
|
||||
Fixed lber/io.c Cray T90 specific pointer arithmetic problem (ITS#325)
|
||||
Documentation
|
||||
Reference Quick Start Guide in README and INSTALL
|
||||
ldappasswd(1) fix -c vs -H typo (ITS#154)
|
||||
|
|
|
|||
|
|
@ -559,7 +559,8 @@ ber_get_next( Sockbuf *sb, unsigned long *len, BerElement *ber )
|
|||
ber->ber_rwptr = ber->ber_buf;
|
||||
}
|
||||
|
||||
toread = (unsigned long)ber->ber_end - (unsigned long)ber->ber_rwptr;
|
||||
toread = ber->ber_end - ber->ber_rwptr;
|
||||
|
||||
do {
|
||||
if ( (rc = BerRead( sb, ber->ber_rwptr, (long)toread )) <= 0 ) {
|
||||
return( LBER_DEFAULT );
|
||||
|
|
|
|||
Loading…
Reference in a new issue