mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bugzilla Bug 353729: handle PR_vsmprintf failure in PR_vfprintf. r=timeless
This commit is contained in:
parent
e02f09041f
commit
0c1349c77a
@ -58,6 +58,9 @@ PR_IMPLEMENT(PRUint32) PR_vfprintf(PRFileDesc* fd, const char *fmt, va_list ap)
|
||||
/* XXX this could be better */
|
||||
PRUint32 rv, len;
|
||||
char* msg = PR_vsmprintf(fmt, ap);
|
||||
if (NULL == msg) {
|
||||
return -1;
|
||||
}
|
||||
len = strlen(msg);
|
||||
#ifdef XP_OS2
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user