Fix possible (not stack) overflow from -d <dir> commandline option.
This commit is contained in:
parent
d92630300f
commit
dc7eb240ea
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24059
@ -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 New Issue
Block a user