79314726

Date: 2024-12-28 23:34:12
Score: 0.5
Natty:
Report link

Turns out InetPton expects a UTF-16 string by default, so I just called InetPtonA, which expects a "normal" ASCII char*, so instead of calling

int result = InetPton(AF_INET, serverAddress, &serverAddr.sin_addr.S_un.S_addr); which redirects to InetPtonW(),

I used int result = InetPtonA(AF_INET, serverAddress, &serverAddr.sin_addr.S_un.S_addr);.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Joelbu