mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 323376 - nsTextFormatter::ssprintf adds extra '\0' to result; Patch by Steve Krulewitz, updated by Jonathan Protzenko; r=darin approval2.0=beltzner
This commit is contained in:
parent
bd9a9cf2a9
commit
e157dd74d7
@ -1188,6 +1188,9 @@ static int dosprintf(SprintfState *ss, const PRUnichar *fmt, va_list ap)
|
||||
static int
|
||||
StringStuff(SprintfState* ss, const PRUnichar* sp, PRUint32 len)
|
||||
{
|
||||
if (*sp == '\0')
|
||||
return 0;
|
||||
|
||||
ptrdiff_t off = ss->cur - ss->base;
|
||||
|
||||
nsAString* str = static_cast<nsAString*>(ss->stuffclosure);
|
||||
|
Loading…
Reference in New Issue
Block a user