1
0
mirror of https://github.com/coturn/coturn.git synced 2026-05-05 10:46:10 +02:00

compilation warning fixed

This commit is contained in:
mom040267 2015-05-05 06:04:29 +00:00
parent 210b9a14aa
commit 14b358ad8b

View File

@ -231,7 +231,7 @@ static void readable_string(unsigned char *orig, unsigned char *out, size_t sz)
out[0]=0;
for(i = 0; i < sz; ++i) {
sprintf((char*)(out + (i * 2)), "%02x", (unsigned int)orig[i]);
snprintf((char*)(out + (i * 2)), 4, "%02x", (unsigned int)orig[i]);
}
}