From 1881ae872f51fef89d9c5b261f2d7054e27fab54 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 19 Sep 2003 00:49:33 +0000 Subject: [PATCH] ITS#2729 fix typos --- libraries/libldap/cyrus.c | 2 +- servers/slapd/sasl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/cyrus.c b/libraries/libldap/cyrus.c index baf0d1b1d9..a4c48fa279 100644 --- a/libraries/libldap/cyrus.c +++ b/libraries/libldap/cyrus.c @@ -67,7 +67,7 @@ int ldap_int_sasl_init( void ) if ( ((rc >> 16) != ((SASL_VERSION_MAJOR << 8)|SASL_VERSION_MINOR)) || (rc & 0xffff) < SASL_VERSION_STEP) { char version[sizeof("xxx.xxx.xxxxx")]; - sprintf( version, "%d.%d.%d", rc >> 24, rc >> 16 * 0xff, + sprintf( version, "%u.%d.%d", (unsigned)rc >> 24, (rc >> 16) & 0xff, rc & 0xffff ); #ifdef NEW_LOGGING diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 527e95cda9..b175764289 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -975,7 +975,7 @@ int slap_sasl_init( void ) if ( ((rc >> 16) != ((SASL_VERSION_MAJOR << 8)|SASL_VERSION_MINOR)) || (rc & 0xffff) < SASL_VERSION_STEP) { char version[sizeof("xxx.xxx.xxxxx")]; - sprintf( version, "%d.%d.%d", rc >> 24, rc >> 16 & 0xff, + sprintf( version, "%u.%d.%d", (unsigned)rc >> 24, (rc >> 16) & 0xff, rc & 0xffff ); #ifdef NEW_LOGGING LDAP_LOG( TRANSPORT, INFO, -- 2.39.5