summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorerdgeist <>2007-11-06 12:20:32 +0000
committererdgeist <>2007-11-06 12:20:32 +0000
commit4ccbc9bd0eae8c604d570ce22654fc79822bd9dc (patch)
treeebc3f30d781eba3f0cfae956af7a4e8b0b4a6062 /ot_stats.c
parent5cca3fe20a654114599bbf2ae54daa87b7bd45f0 (diff)
Fixed a forgotten unlock and a messed up string pointer
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_stats.c b/ot_stats.c
index a1c85af..6857376 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -18,7 +18,7 @@
18#include "ot_stats.h" 18#include "ot_stats.h"
19 19
20/* Converter function from memory to human readable hex strings */ 20/* Converter function from memory to human readable hex strings */
21static char*to_hex(char*d,ot_byte*s){const char*m="0123456789ABCDEF";char*e=d+40;while(d<e){*d++=m[*s>>4];*d++=m[*s++&15];}*d=0;return d;} 21static char*to_hex(char*d,ot_byte*s){char*m="0123456789ABCDEF";char *t=d;char*e=d+40;while(d<e){*d++=m[*s>>4];*d++=m[*s++&15];}*d=0;return t;}
22 22
23typedef struct { size_t val; ot_torrent * torrent; } ot_record; 23typedef struct { size_t val; ot_torrent * torrent; } ot_record;
24 24