Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176530
b: refs/heads/master
c: a518b86
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Alasdair G Kergon committed Dec 10, 2009
1 parent d95e33a commit df08ac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5339fc2d47d1d720e027b9b832bf5aae8fba2ac0
refs/heads/master: a518b86d0b1b6a474f154697dc6f33e0a317ae72
4 changes: 2 additions & 2 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ static struct mapped_device *find_device(struct dm_ioctl *param)
* Sneakily write in both the name and the uuid
* while we have the cell.
*/
strncpy(param->name, hc->name, sizeof(param->name));
strlcpy(param->name, hc->name, sizeof(param->name));
if (hc->uuid)
strncpy(param->uuid, hc->uuid, sizeof(param->uuid)-1);
strlcpy(param->uuid, hc->uuid, sizeof(param->uuid));
else
param->uuid[0] = '\0';

Expand Down

0 comments on commit df08ac3

Please sign in to comment.