summaryrefslogtreecommitdiff
path: root/src/core/wee-hashtable.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-07-30 00:50:28 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-07-30 00:50:28 +0200
commitdc8daef33d985794b392b20d5fcad51e73d846b5 (patch)
tree831b371448ffea95737fa391e6b986d78293dd18 /src/core/wee-hashtable.c
parenta56c1097dccbe4f08e4155a5e4021d339a4bd63c (diff)
downloadweechat-dc8daef33d985794b392b20d5fcad51e73d846b5.zip
core: fix crash when building hashtable string with keys and values
Diffstat (limited to 'src/core/wee-hashtable.c')
-rw-r--r--src/core/wee-hashtable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-hashtable.c b/src/core/wee-hashtable.c
index 57c9c510f..f33db8c25 100644
--- a/src/core/wee-hashtable.c
+++ b/src/core/wee-hashtable.c
@@ -554,7 +554,7 @@ hashtable_compute_length_values_cb (void *data,
}
else
{
- *length += strlen ("(null)");
+ *length += strlen ("(null)") + 1;
}
}