summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/resident.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/dvipsk/resident.c')
-rw-r--r--Build/source/texk/dvipsk/resident.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/resident.c b/Build/source/texk/dvipsk/resident.c
index 453911f5f95..a82a801ed4e 100644
--- a/Build/source/texk/dvipsk/resident.c
+++ b/Build/source/texk/dvipsk/resident.c
@@ -774,7 +774,8 @@ default:
if (printer)
{
char msg[1000];
- sprintf (msg, "warning: no config file for `%s'", printer);
+ snprintf (msg, sizeof(msg), "warning: no config file for `%s'",
+ printer);
error(msg);
return 0;
}