]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: update sprintf() to snprintf() 7812/head
authorxiexingguo <xie.xingguo@zte.com.cn>
Fri, 26 Feb 2016 11:35:55 +0000 (19:35 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 27 Feb 2016 13:28:09 +0000 (21:28 +0800)
commit083a0064a359ccca6f08fa9a9dc134d607244cae
treef5076fddfa168bf131a014712217ea152fee5b56
parent8101df0024d04a4b16a6667ced472f001850fe7b
osd: update sprintf() to snprintf()

Which is safer. Also enlarge length of name to 32, which shall be
big enough to hold a int64_t value.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/OSDMap.cc