Commit 12a2f643 authored by Sage Weil's avatar Sage Weil

libceph: use snprintf for unknown addrs

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 2dab036b
......@@ -76,7 +76,8 @@ const char *ceph_pr_addr(const struct sockaddr_storage *ss)
break;
default:
sprintf(s, "(unknown sockaddr family %d)", (int)ss->ss_family);
snprintf(s, MAX_ADDR_STR_LEN, "(unknown sockaddr family %d)",
(int)ss->ss_family);
}
return s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment