1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtappbuilder: Resolve format-overflow issues

This commit is contained in:
Peter Howkins 2021-12-23 19:53:35 +00:00 committed by Jon Trulson
parent 0332c396c2
commit 793d8b9262

View file

@ -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));