mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Fix possible (not stack) overflow from -d <dir> commandline option.
This commit is contained in:
parent
d92630300f
commit
dc7eb240ea
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ main(argc, argv)
|
|||
cflag = 1;
|
||||
break;
|
||||
case 'd':
|
||||
strcpy(prefix, optarg);
|
||||
strncpy(prefix, optarg, sizeof prefix - 1);
|
||||
break;
|
||||
case 'p': /* create V7 "file.orig" */
|
||||
makeold = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue