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:
parent
210b9a14aa
commit
14b358ad8b
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user