From 7d5b23fb4438b6f4cd55989d72661bf73b8445c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sundstr=C3=B6m?= Date: Wed, 23 Feb 2011 00:30:17 +0000 Subject: [PATCH] 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 --- src/bin/query.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/query.cpp b/src/bin/query.cpp index e520ef0541..b50ac683ac 100644 --- a/src/bin/query.cpp +++ b/src/bin/query.cpp @@ -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: