File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ PPH_STRING PhpGetIp4ReverseNameFromAddress(
58
58
_In_ IN_ADDR Address
59
59
)
60
60
{
61
- return PhFormatString (L"%u.%u.%u.%u.%s" ,
61
+ return PhFormatString (
62
+ L"%hhu.%hhu.%hhu.%hhu.%s" ,
62
63
Address .s_impno ,
63
64
Address .s_lh ,
64
65
Address .s_host ,
@@ -73,13 +74,13 @@ PPH_STRING PhpGetIp6ReverseNameFromAddress(
73
74
{
74
75
PH_STRING_BUILDER stringBuilder ;
75
76
76
- PhInitializeStringBuilder (& stringBuilder , 32 );
77
+ PhInitializeStringBuilder (& stringBuilder , DNS_MAX_NAME_BUFFER_LENGTH );
77
78
78
79
for (INT i = sizeof (IN6_ADDR ) - 1 ; i >= 0 ; i -- )
79
80
{
80
81
PhAppendFormatStringBuilder (
81
82
& stringBuilder ,
82
- L"%x.%x ." ,
83
+ L"%hhx.%hhx ." ,
83
84
Address .s6_addr [i ] & 0xF ,
84
85
(Address .s6_addr [i ] >> 4 ) & 0xF
85
86
);
You can’t perform that action at this time.
0 commit comments