dtappbuilder: Resolve format-overflow issues
This commit is contained in:
committed by
Jon Trulson
parent
0332c396c2
commit
793d8b9262
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user