commit | 4ef5c397117bd68438efa3ba91d86b0d1ae3714a | [log] [tgz] |
---|---|---|
author | nethercote <nethercote@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Tue Jan 20 14:43:42 2004 +0000 |
committer | nethercote <nethercote@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Tue Jan 20 14:43:42 2004 +0000 |
tree | 5261dd2e9ac348f8fc50c8f16c0af1ff61c7be45 | |
parent | 288b7669283b2bb5938da7de7111e57558f5828e [diff] |
From Tom Hughes: patch to report port numbers correctly git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2210 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index 1e4fe25..ee59173 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c
@@ -540,7 +540,7 @@ VG_(sprintf)(name, "%u.%u.%u.%u:%u", addr & 0xFF, (addr>>8) & 0xFF, (addr>>16) & 0xFF, (addr>>24) & 0xFF, - sa->sin_port); + ntohs(sa->sin_port)); } }