wldap32: Write-strings warnings fix.
This commit is contained in:
parent
c62f428d1d
commit
96b6d33519
|
@ -373,7 +373,8 @@ INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
|
|||
{
|
||||
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':
|
||||
|
|
|
@ -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 *scheme, char **hostnames, ULONG portnumber )
|
|||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue