diff options
author | erdgeist <> | 2008-12-07 13:14:24 +0000 |
---|---|---|
committer | erdgeist <> | 2008-12-07 13:14:24 +0000 |
commit | bca8bee62334de23fdb28ae5a8fa76b5d72089cb (patch) | |
tree | 06bab06dd505faf4df9851b42721c664a06d89b2 /ot_livesync.c | |
parent | 5f5007883e17b6f030d34b2b7d813426df73505a (diff) |
Fix: auto increment in += is not a post increment...
Diffstat (limited to 'ot_livesync.c')
-rw-r--r-- | ot_livesync.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ot_livesync.c b/ot_livesync.c index f61f0ec..3cad121 100644 --- a/ot_livesync.c +++ b/ot_livesync.c | |||
@@ -101,10 +101,11 @@ static void livesync_issuepacket( ) { | |||
101 | /* Inform live sync about whats going on. */ | 101 | /* Inform live sync about whats going on. */ |
102 | void livesync_tell( ot_hash * const info_hash, const ot_peer * const peer ) { | 102 | void livesync_tell( ot_hash * const info_hash, const ot_peer * const peer ) { |
103 | int i; | 103 | int i; |
104 | for(i=0;i<20;i+=4) WRITE32(livesync_outbuffer_pos+=4,0,READ32(info_hash,i)); | 104 | for(i=0;i<20;i+=4) WRITE32(livesync_outbuffer_pos,i,READ32(info_hash,i)); |
105 | WRITE32(livesync_outbuffer_pos+=4,0,READ32(peer,0)); | 105 | WRITE32(livesync_outbuffer_pos,20,READ32(peer,0)); |
106 | WRITE32(livesync_outbuffer_pos+=4,0,READ32(peer,4)); | 106 | WRITE32(livesync_outbuffer_pos,24,READ32(peer,4)); |
107 | 107 | livesync_outbuffer_pos += 28; | |
108 | |||
108 | if( livesync_outbuffer_pos >= livesync_outbuffer_highwater ) | 109 | if( livesync_outbuffer_pos >= livesync_outbuffer_highwater ) |
109 | livesync_issuepacket(); | 110 | livesync_issuepacket(); |
110 | } | 111 | } |