summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2008-12-07 12:04:43 +0000
committererdgeist <>2008-12-07 12:04:43 +0000
commit5f5007883e17b6f030d34b2b7d813426df73505a (patch)
tree352a69f7c973d24dbd4b84964a739375acc0e9bf
parent5a0146f810f980770a9acae23dc327120e032106 (diff)
Fix post increase on wrong pointer type.
-rw-r--r--ot_fullscrape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c
index 9a6effb..523d883 100644
--- a/ot_fullscrape.c
+++ b/ot_fullscrape.c
@@ -177,8 +177,8 @@ static void fullscrape_make( int *iovec_entries, struct iovec **iovector, ot_tas
177 break; 177 break;
178 case TASK_FULLSCRAPE_TPB_BINARY: 178 case TASK_FULLSCRAPE_TPB_BINARY:
179 for(i=0;i<20;i+=4) WRITE32(r+=4,0,READ32(hash,i)); 179 for(i=0;i<20;i+=4) WRITE32(r+=4,0,READ32(hash,i));
180 *(uint32_t*)r++ = htonl( (uint32_t)peer_list->seed_count ); 180 *(uint32_t*)(r+=4) = htonl( (uint32_t) peer_list->seed_count );
181 *(uint32_t*)r++ = htonl( (uint32_t)( peer_list->peer_count-peer_list->seed_count) ); 181 *(uint32_t*)(r+=4) = htonl( (uint32_t)( peer_list->peer_count-peer_list->seed_count) );
182 break; 182 break;
183 case TASK_FULLSCRAPE_TPB_URLENCODED: 183 case TASK_FULLSCRAPE_TPB_URLENCODED:
184 r += fmt_urlencoded( r, (char *)*hash, 20 ); 184 r += fmt_urlencoded( r, (char *)*hash, 20 );