Commit 2dab036b8c349d747f447ac98c8eb40c769727a8
1 parent
ae59808301
Exists in
master
and in
4 other branches
libceph: use snprintf for formatting object name
Signed-off-by: Sage Weil <sage@newdream.net>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/ceph/osd_client.c
... | ... | @@ -124,7 +124,7 @@ |
124 | 124 | ceph_calc_raw_layout(osdc, layout, vino.snap, off, |
125 | 125 | plen, &bno, req, op); |
126 | 126 | |
127 | - sprintf(req->r_oid, "%llx.%08llx", vino.ino, bno); | |
127 | + snprintf(req->r_oid, sizeof(req->r_oid), "%llx.%08llx", vino.ino, bno); | |
128 | 128 | req->r_oid_len = strlen(req->r_oid); |
129 | 129 | } |
130 | 130 |