mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2025-02-17 22:37:34 +00:00
net: fix debug function StrAddr
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
b6f2907e71
commit
0b4e4e7547
@ -59,12 +59,11 @@ static struct {
|
||||
char *
|
||||
StrAddr(netadr_t *addr)
|
||||
{
|
||||
static char buf[34];
|
||||
byte *p = (byte *)addr;
|
||||
int n;
|
||||
static char buf[32];
|
||||
|
||||
for (n = 0; n < 16; n++)
|
||||
sprintf(buf + n * 2, "%02x", *p++);
|
||||
sprintf(buf, "%d.%d.%d.%d:%d",
|
||||
addr->ip.b[0], addr->ip.b[1], addr->ip.b[2], addr->ip.b[3],
|
||||
ntohs(addr->port));
|
||||
return buf;
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user