summaryrefslogtreecommitdiff
path: root/src/common/container.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2011-05-15 22:15:06 -0400
committerNick Mathewson <nickm@torproject.org>2011-05-15 22:15:06 -0400
commitde8e0ef0bd03607f444c967d8c3d74aa8abee4b8 (patch)
tree2120cf9df23c8d83169efa2e3c376595c0cef5fd /src/common/container.c
parent4ac8ff9c9f182b6202200480f8fc4689da659331 (diff)
parent83fe07d3f26aff703230305c9ff529592af32d4f (diff)
downloadtor-de8e0ef0bd03607f444c967d8c3d74aa8abee4b8.tar.gz
tor-de8e0ef0bd03607f444c967d8c3d74aa8abee4b8.zip
Merge remote-tracking branch 'origin/maint-0.2.2'
Diffstat (limited to 'src/common/container.c')
-rw-r--r--src/common/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/container.c b/src/common/container.c
index af80f881f5..8635409d81 100644
--- a/src/common/container.c
+++ b/src/common/container.c
@@ -210,7 +210,7 @@ smartlist_string_isin_case(const smartlist_t *sl, const char *element)
int
smartlist_string_num_isin(const smartlist_t *sl, int num)
{
- char buf[16];
+ char buf[32]; /* long enough for 64-bit int, and then some. */
tor_snprintf(buf,sizeof(buf),"%d", num);
return smartlist_string_isin(sl, buf);
}