summaryrefslogtreecommitdiff
path: root/gs/src/gp_vms.c
diff options
context:
space:
mode:
authorRalph Giles <ralph.giles@artifex.com>2003-09-04 16:17:42 +0000
committerRalph Giles <ralph.giles@artifex.com>2003-09-04 16:17:42 +0000
commit7b548486120a66507c057d276b583713b72b99ee (patch)
treec1f5e41702ac91f915191334cdd950c0192df93b /gs/src/gp_vms.c
parentf1f8be0345e3369ca6aeb3a67193fcf29aaa22f0 (diff)
VMS fix from Forrest Cahoon.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4191 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gp_vms.c')
-rw-r--r--gs/src/gp_vms.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gs/src/gp_vms.c b/gs/src/gp_vms.c
index 03e576bc3..6180fd302 100644
--- a/gs/src/gp_vms.c
+++ b/gs/src/gp_vms.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1989, 2000 Aladdin Enterprises. All rights reserved.
+/* Copyright (C) 1989-2003 artofcode LLC. All rights reserved.
This software is provided AS-IS with no warranty, either express or
implied.
@@ -16,6 +16,7 @@
/* $Id$ */
/* VAX/VMS specific routines for Ghostscript */
+
#include "string_.h"
#include "memory_.h"
#include "gx.h"
@@ -220,10 +221,10 @@ gp_open_scratch_file(const char *prefix, char fname[gp_file_name_sizeof],
{
FILE *f;
char tmpdir[gp_file_name_sizeof];
- int tdlen;
- int flen[1];
+ int tdlen = gp_file_name_sizeof;
+ int flen[1];
- if (!gp_file_name_is_absolute(prefix, strlen(prefix)) &&
+ if (!gp_file_name_is_absolute(prefix, strlen(prefix)) &&
gp_gettmpdir(tmpdir, &tdlen) == 0) {
flen[0] = gp_file_name_sizeof;
if (gp_file_name_combine(tmpdir, tdlen, prefix, strlen(prefix),