diff --git a/dlls/wldap32/misc.c b/dlls/wldap32/misc.c index bd8a4df1bf9..9c421f94707 100644 --- a/dlls/wldap32/misc.c +++ b/dlls/wldap32/misc.c @@ -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; }