mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Use PR_snprintf instead of snprintf.
Fixing hpux tinderbox bustage.
This commit is contained in:
parent
8fce80a722
commit
2ba330b480
@ -58,6 +58,7 @@
|
||||
#endif /* !NS_BUILD_ID */
|
||||
|
||||
#include "prenv.h"
|
||||
#include "prprf.h"
|
||||
|
||||
#include <locale.h>
|
||||
#include <limits.h>
|
||||
@ -65,7 +66,6 @@
|
||||
|
||||
#ifdef VMS
|
||||
#include <stdlib.h>
|
||||
#include "prprf.h"
|
||||
#endif
|
||||
|
||||
/* This is deprecated but we still need it until all platforms set the paper name in nsIPrintSettings... */
|
||||
@ -390,7 +390,7 @@ nsPostScriptObj::Init( nsIDeviceContextSpecPS *aSpec )
|
||||
* static buffer again.
|
||||
*/
|
||||
PR_SetEnv("MOZ_PRINTER_NAME=dummy_value_to_make_putenv_happy");
|
||||
PRInt32 nchars = snprintf(envvar, ARG_MAX,
|
||||
PRInt32 nchars = PR_snprintf(envvar, ARG_MAX,
|
||||
"MOZ_PRINTER_NAME=%s", printername);
|
||||
if (nchars < 0 || nchars >= ARG_MAX)
|
||||
sprintf(envvar, "MOZ_PRINTER_NAME=");
|
||||
|
Loading…
x
Reference in New Issue
Block a user