Fix possible (not stack) overflow from -d <dir> commandline option.
This commit is contained in:
parent
d92630300f
commit
dc7eb240ea
@ -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