summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 924c9af)
raw | patch | inline | side by side (parent: 924c9af)
author | Florian Forster <octo@collectd.org> | |
Sun, 28 Jun 2015 12:05:05 +0000 (14:05 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 28 Jun 2015 12:09:10 +0000 (14:09 +0200) |
src/common.c | patch | blob | history |
diff --git a/src/common.c b/src/common.c
index f41e9506b447db19075d0d843c25dc5a176e016c..c2849420502846eabcec0c5ab701778275a0bce1 100644 (file)
--- a/src/common.c
+++ b/src/common.c
if (buf[0] == '/')
memmove (buf, buf + 1, buf_len - 1);
- for (i = 0; i < buf_len - 1; i++)
+ for (i = 0; i < buf_len; i++)
{
if (buf[i] == '\0')
break;