summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-05-10 00:53:57 +0000
committerKarl Berry <karl@freefriends.org>2010-05-10 00:53:57 +0000
commite3216395f89dca4ac988ded326a8d1d6a05a6cdb (patch)
tree42a435eaaca6b0191c048893a233524b4248f7bf /Build/source/texk/dvipsk
parentbc1ba29e1fe34f06a26ba272b653155d30461bd5 (diff)
use snprintf
git-svn-id: svn://tug.org/texlive/trunk@18176 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk')
-rw-r--r--Build/source/texk/dvipsk/dosection.c2
-rw-r--r--Build/source/texk/dvipsk/dospecial.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvipsk/dosection.c b/Build/source/texk/dvipsk/dosection.c
index 93ef9885760..98a0fde7606 100644
--- a/Build/source/texk/dvipsk/dosection.c
+++ b/Build/source/texk/dvipsk/dosection.c
@@ -40,7 +40,7 @@ dosection(sectiontype *s, int c)
doubleout(mag);
numout((integer)DPI);
numout((integer)VDPI);
- sprintf(buf, "(%.99s)", fulliname);
+ snprintf(buf, sizeof(buf), "(%.99s)", fulliname);
cmdout(buf);
newline();
cmdout("@start");
diff --git a/Build/source/texk/dvipsk/dospecial.c b/Build/source/texk/dvipsk/dospecial.c
index a99e6bd6662..721327f251d 100644
--- a/Build/source/texk/dvipsk/dospecial.c
+++ b/Build/source/texk/dvipsk/dospecial.c
@@ -951,7 +951,7 @@ default:
if (ValInt-ValNum < 0.001 && ValInt-ValNum > -0.001)
numout((integer)ValInt);
else {
- (void)sprintf(cmdbuf, "%f", ValNum);
+ snprintf(cmdbuf, sizeof(cmdbuf), "%f", ValNum);
cmdout(cmdbuf);
}
}