mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Fix OpenVMS breakage - someone moved my code into an ELSE.
Alos use PR_snprintf intead of sprintf. b=93331 r=dcone sr=waterson
This commit is contained in:
parent
0cd53cd636
commit
1a21d1fd1d
@ -49,6 +49,7 @@
|
||||
|
||||
#ifdef VMS
|
||||
#include <stdlib.h>
|
||||
#include "prprf.h"
|
||||
#endif
|
||||
|
||||
extern "C" PS_FontInfo *PSFE_MaskToFI[N_FONTS]; // need fontmetrics.c
|
||||
@ -190,17 +191,17 @@ nsPostScriptObj::~nsPostScriptObj()
|
||||
// pclose not defined OS2TODO
|
||||
#else
|
||||
pclose( mPrintSetup->out );
|
||||
#endif
|
||||
#ifdef VMS
|
||||
if ( mPrintSetup->print_cmd != (char *) NULL ) {
|
||||
char VMSPrintCommand[1024];
|
||||
sprintf (VMSPrintCommand, "%s /delete %s.",
|
||||
mPrintSetup->print_cmd, mPrintSetup->filename);
|
||||
system(VMSPrintCommand);
|
||||
free(mPrintSetup->filename);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#ifdef VMS
|
||||
if ( mPrintSetup->print_cmd != (char *) NULL ) {
|
||||
char VMSPrintCommand[1024];
|
||||
PR_snprintf(VMSPrintCommand, sizeof(VMSPrintCommand), "%s /delete %s.",
|
||||
mPrintSetup->print_cmd, mPrintSetup->filename);
|
||||
system(VMSPrintCommand);
|
||||
free(mPrintSetup->filename);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
// Cleanup things allocated along the way
|
||||
if (nsnull != mTitle){
|
||||
|
Loading…
Reference in New Issue
Block a user