Module: wine Branch: master Commit: 96b6d3351913e4290bffe9feaa802afe73fc8248 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=96b6d3351913e4290bffe9fe...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Fri Aug 11 13:42:06 2006 +0100
wldap32: Write-strings warnings fix.
---
dlls/wldap32/ber.c | 3 ++- dlls/wldap32/init.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/wldap32/ber.c b/dlls/wldap32/ber.c index c037a16..159c128 100644 --- a/dlls/wldap32/ber.c +++ b/dlls/wldap32/ber.c @@ -373,7 +373,8 @@ #ifdef HAVE_LDAP { char *str = va_arg( list, char * ); int len = va_arg( list, int ); - ret = ber_printf( berelement, "B" /* 'X' is deprecated */, str, len ); + new_fmt[0] = 'B'; /* 'X' is deprecated */ + ret = ber_printf( berelement, new_fmt, str, len ); break; } case 'n': diff --git a/dlls/wldap32/init.c b/dlls/wldap32/init.c index b4e78c5..920e169 100644 --- a/dlls/wldap32/init.c +++ b/dlls/wldap32/init.c @@ -132,7 +132,7 @@ static int has_ldap_scheme( char *url ) * Prepend a given scheme and append a given portnumber to each hostname * if necessary. */ -static char *join_hostnames( char *scheme, char **hostnames, ULONG portnumber ) +static char *join_hostnames( const char *scheme, char **hostnames, ULONG portnumber ) { char *res, *p, *q, **v; unsigned int i = 0, size = 0; @@ -196,7 +196,7 @@ static char *join_hostnames( char *schem return res; }
-static char *urlify_hostnames( char *scheme, char *hostnames, ULONG port ) +static char *urlify_hostnames( const char *scheme, char *hostnames, ULONG port ) { char *url = NULL, **strarray;