From 229102a19627894f03f56c2c1539cb8b94830642 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 6 Nov 2007 23:23:47 +0000 Subject: [PATCH] more libevent fun. good thing the mac build is broken or I'd've been getting bug reports on this instead :) --- libtransmission/bencode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/bencode.c b/libtransmission/bencode.c index 9cc4ba07d..4cf6903c1 100644 --- a/libtransmission/bencode.c +++ b/libtransmission/bencode.c @@ -417,7 +417,7 @@ saveImpl( struct evbuffer * out, const benc_val_t * val ) break; case TYPE_STR: - evbuffer_add_printf( out, "i:%*.*s", val->val.i, val->val.i, val->val.i, val->val.s ); + evbuffer_add_printf( out, "%i:%s", (int)val->val.i, val->val.s.s ); break; case TYPE_LIST: