Unsafe use of strncpy replaced by strlcpy. CID 2258.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40627 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c4035e9124
commit
7d5b23fb44
@ -117,7 +117,7 @@ main(int argc, char **argv)
|
||||
sAllVolumes = true;
|
||||
break;
|
||||
case 'v':
|
||||
strncpy(volumePath, optarg, B_FILE_NAME_LENGTH);
|
||||
strlcpy(volumePath, optarg, B_FILE_NAME_LENGTH);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user