diff options
-rw-r--r-- | Build/source/texk/dvipsk/dosection.c | 2 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/dospecial.c | 2 |
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); } } |