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:
Jonas Sundström 2011-02-23 00:30:17 +00:00
parent c4035e9124
commit 7d5b23fb44

View File

@ -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: