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:
parent
0332c396c2
commit
793d8b9262
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue