aboutsummaryrefslogtreecommitdiffstats
path: root/net/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-05-12 14:29:51 -0700
committerSage Weil <sage@newdream.net>2011-05-19 11:25:02 -0700
commit2dab036b8c349d747f447ac98c8eb40c769727a8 (patch)
treeab502f1a05ae17f5f6cbbd7bdb2731a051d15580 /net/ceph
parentae598083015e22d1802617c18d3408971b1bddc0 (diff)
downloadkernel_samsung_aries-2dab036b8c349d747f447ac98c8eb40c769727a8.zip
kernel_samsung_aries-2dab036b8c349d747f447ac98c8eb40c769727a8.tar.gz
kernel_samsung_aries-2dab036b8c349d747f447ac98c8eb40c769727a8.tar.bz2
libceph: use snprintf for formatting object name
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/ceph')
-rw-r--r--net/ceph/osd_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index 6b5dda1..9adbb01 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -124,7 +124,7 @@ static void calc_layout(struct ceph_osd_client *osdc,
ceph_calc_raw_layout(osdc, layout, vino.snap, off,
plen, &bno, req, op);
- sprintf(req->r_oid, "%llx.%08llx", vino.ino, bno);
+ snprintf(req->r_oid, sizeof(req->r_oid), "%llx.%08llx", vino.ino, bno);
req->r_oid_len = strlen(req->r_oid);
}