Fix format of returned subnet mask

This commit is contained in:
Sergey Abramchuk
2017-03-20 21:56:47 +03:00
parent a5531f61fb
commit 6fa887de8d

View File

@@ -565,7 +565,7 @@ static void socketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
uint8_t third = (bitmask >> 8) & 0xFF;
uint8_t fourth = bitmask & 0xFF;
return [NSString stringWithFormat:@"%uc.%uc.%uc.%uc", first, second, third, fourth];
return [NSString stringWithFormat:@"%hhu.%hhu.%hhu.%hhu", first, second, third, fourth];
}
#pragma mark Deallocation