We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b39b732 commit 22a8b84Copy full SHA for 22a8b84
drivers/md/dm-ioctl.c
@@ -937,9 +937,9 @@ static struct hash_cell *__find_device_hash_cell(struct dm_ioctl *param)
937
* Sneakily write in both the name and the uuid
938
* while we have the cell.
939
*/
940
- strlcpy(param->name, hc->name, sizeof(param->name));
+ strscpy(param->name, hc->name, sizeof(param->name));
941
if (hc->uuid)
942
- strlcpy(param->uuid, hc->uuid, sizeof(param->uuid));
+ strscpy(param->uuid, hc->uuid, sizeof(param->uuid));
943
else
944
param->uuid[0] = '\0';
945
0 commit comments