wldap32: Use return value of sprintf() instead of hardcoding the number of written characters.
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
47ff95429a
commit
c7e46b781a
|
@ -226,10 +226,7 @@ static void escape_filter_element( PCHAR src, ULONG srclen, PCHAR dst )
|
|||
(src[i] >= 'a' && src[i] <= 'z'))
|
||||
*d++ = src[i];
|
||||
else
|
||||
{
|
||||
sprintf( d, fmt, (unsigned char)src[i] );
|
||||
d += 3;
|
||||
}
|
||||
d += sprintf( d, fmt, (unsigned char)src[i] );
|
||||
}
|
||||
*++d = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue