From 793d8b9262135a266052b454166544497e02ba8b Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 23 Dec 2021 19:53:35 +0000 Subject: [PATCH] dtappbuilder: Resolve format-overflow issues --- cde/programs/dtimsstart/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtimsstart/file.c b/cde/programs/dtimsstart/file.c index 7dd68b321..cd19ba8d7 100644 --- a/cde/programs/dtimsstart/file.c +++ b/cde/programs/dtimsstart/file.c @@ -979,7 +979,7 @@ int set_select_mode(int cur_mode, int new_mode) char *lp, *valp; int n, line_num, mode_line; - sprintf(new_fname, "%s,tmp", path); + snprintf(new_fname, sizeof(new_fname), "%s,tmp", path); if (!(new_fp = fopen(new_fname, "w"))) { fclose(fp); DPR(("set_select_mode(): cannot create %s\n", new_fname));