From 463a1cab43fda24f89f71fffc876756dc1bc155a Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Wed, 5 Sep 2012 23:36:19 +0200 Subject: fix signed/unsigned in strprintf and CNetAddr::GetByte() - I checked every occurance of strprintf() in the code and used %u, where unsigned vars are used - the change to GetByte() was made, as ip is an unsigned char --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index c0693306a..651f4a974 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1025,7 +1025,7 @@ void ThreadMapPort2(void* parg) { printf("ThreadMapPort started\n"); - std::string port = strprintf("%d", GetListenPort()); + std::string port = strprintf("%u", GetListenPort()); const char * multicastif = 0; const char * minissdpdpath = 0; struct UPNPDev * devlist = 0; -- cgit v1.2.3