aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-10 04:29:41 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-10 04:29:41 +0200
commit2201becca443c28cb722b6a536b70a5f5d144124 (patch)
treeaf11037746c844b15c43b61e93802d5341d6c41a
parent7023c513477eca7832f5ae3c6204a7240c1401c0 (diff)
downloadliberty-2201becca443c28cb722b6a536b70a5f5d144124.tar.gz
liberty-2201becca443c28cb722b6a536b70a5f5d144124.tar.xz
liberty-2201becca443c28cb722b6a536b70a5f5d144124.zip
Mark some issues
-rw-r--r--liberty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/liberty.c b/liberty.c
index 8fc4cb0..1de6a35 100644
--- a/liberty.c
+++ b/liberty.c
@@ -1357,6 +1357,7 @@ struct poller_idle
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+// The heap could definitely be made faster but we'll prefer simplicity
struct poller_timers
{
struct poller_timer **heap; ///< Min-heap of timers
@@ -3002,6 +3003,7 @@ iconv_xstrdup (iconv_t conv, char *in, size_t in_len, size_t *out_len)
char *in_ptr = in;
if (in_len == (size_t) -1)
+ // XXX: out_len will be one character longer than the string!
in_len = strlen (in) + 1;
while (iconv (conv, (char **) &in_ptr, &in_len,