+2
-2
@@ -212,9 +212,9 @@ protected:
|
|||||||
unsigned char *b = (unsigned char *) binary.data();
|
unsigned char *b = (unsigned char *) binary.data();
|
||||||
|
|
||||||
if (binary.length() == 4) {
|
if (binary.length() == 4) {
|
||||||
ipLength = sprintf(buf, "%u.%u.%u.%u", b[0], b[1], b[2], b[3]);
|
ipLength = snprintf(buf, 64, "%u.%u.%u.%u", b[0], b[1], b[2], b[3]);
|
||||||
} else {
|
} else {
|
||||||
ipLength = sprintf(buf, "%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x",
|
ipLength = snprintf(buf, 64, "%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x",
|
||||||
b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11],
|
b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11],
|
||||||
b[12], b[13], b[14], b[15]);
|
b[12], b[13], b[14], b[15]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user