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:
Carlo Bramini 2016-11-12 09:57:42 +01:00 committed by Alexandre Julliard
parent 47ff95429a
commit c7e46b781a
1 changed files with 1 additions and 4 deletions

View File

@ -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;
}