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:
colin%theblakes.com 2001-08-10 11:46:55 +00:00
parent 0cd53cd636
commit 1a21d1fd1d

View File

@ -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){