Commit c7e46b78 authored by Carlo Bramini's avatar Carlo Bramini Committed by Alexandre Julliard

wldap32: Use return value of sprintf() instead of hardcoding the number of written characters.

parent 47ff9542
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment