summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipsk/output.c')
-rw-r--r--Build/source/texk/dvipsk/output.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Build/source/texk/dvipsk/output.c b/Build/source/texk/dvipsk/output.c
index 14615db3eeb..1114ee7faf5 100644
--- a/Build/source/texk/dvipsk/output.c
+++ b/Build/source/texk/dvipsk/output.c
@@ -176,7 +176,7 @@ copyfile_general(const char *s, struct header_list *cur_header)
}
#endif /* VMCMS */
#else /* VMCMS || MVSXA */
- sprintf(errbuf, "Could not find figure file %s; continuing.", s);
+ sprintf(errbuf, "Could not find figure file %.500s; continuing.", s);
if (secure == 2) {
strcat(errbuf, "\nNote that an absolute path or a relative path with .. are denied in -R2 mode.");
}
@@ -190,19 +190,20 @@ copyfile_general(const char *s, struct header_list *cur_header)
#ifndef __THINK__
case 2:
#ifdef SECURE
- sprintf(errbuf, "<%s>: Tick filename execution disabled", s);
+ sprintf(errbuf, "<%.500s>: Tick filename execution disabled", s);
#else
#ifdef OS2
if (_osmode == OS2_MODE) {
#endif
if (secure == 0) {
- sprintf(errbuf, "Execution of <%s> failed ", s);
+ sprintf(errbuf, "Execution of <%.500s> failed ", s);
f = popen(s, "r");
if (f != 0)
SET_BINARY(fileno(f));
}
else {
- sprintf(errbuf,"Secure mode is %d so execute <%s> will not run", secure,s);
+ sprintf(errbuf,"Secure mode is %d so execute <%.500s> will not run",
+ secure, s);
}
#ifdef OS2
}
@@ -221,7 +222,7 @@ copyfile_general(const char *s, struct header_list *cur_header)
if(f==NULL)
f = search(figpath, s, READBIN);
}
- sprintf(errbuf, "! Could not find header file %s.", s);
+ sprintf(errbuf, "! Could not find header file %.500s.", s);
if (secure == 2) {
strcat(errbuf, "\nNote that an absolute path or a relative path with .. are denied in -R2 mode.");
}