]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
fixed setport fuckup
authorerdgeist <>
Fri, 15 Dec 2006 23:35:40 +0000 (23:35 +0000)
committererdgeist <>
Fri, 15 Dec 2006 23:35:40 +0000 (23:35 +0000)
trackerlogic.h

index 1bd72289cd66fb74c09f3fa85264dd1e8936424d..d2948db90ec35bc2ef61ca381ac82f132a353acb 100644 (file)
@@ -46,7 +46,7 @@ static const ot_byte PEER_FLAG_COMPLETED = 0x40;
 static const ot_byte PEER_FLAG_STOPPED   = 0x20;
 
 #define OT_SETIP( peer, ip ) MEMMOVE((peer),(ip),4);
-#define OT_SETPORT( peer, port ) MEMMOVE((peer),(port),2);
+#define OT_SETPORT( peer, port ) MEMMOVE(((ot_byte*)peer)+6,(port),2);
 #define OT_FLAG(peer) (((ot_byte*)(peer))[6])
 
 typedef struct {