Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251315
b: refs/heads/master
c: aedfec5
h: refs/heads/master
i:
  251313: cc1eaa3
  251311: 352a714
v: v3
  • Loading branch information
Sage Weil committed May 24, 2011
1 parent 1415323 commit db0089a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 916d4d672779de8e42346fff338617c7b841e8e5
refs/heads/master: aedfec59eed37d1ff7ce09b303b668234e9a7f8e
3 changes: 2 additions & 1 deletion trunk/drivers/block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1721,7 +1721,8 @@ static int rbd_init_disk(struct rbd_device *rbd_dev)
if (!disk)
goto out;

sprintf(disk->disk_name, DRV_NAME "%d", rbd_dev->id);
snprintf(disk->disk_name, sizeof(disk->disk_name), DRV_NAME "%d",
rbd_dev->id);
disk->major = rbd_dev->major;
disk->first_minor = 0;
disk->fops = &rbd_bd_ops;
Expand Down

0 comments on commit db0089a

Please sign in to comment.