summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b9b6fb7)
raw | patch | inline | side by side (parent: b9b6fb7)
author | Florian Forster <octo@verplant.org> | |
Sat, 26 Jan 2008 12:58:30 +0000 (13:58 +0100) | ||
committer | Florian Forster <octo@verplant.org> | |
Sat, 26 Jan 2008 12:58:30 +0000 (13:58 +0100) |
Including the terminating NULL-byte.
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index f749301efc350e80d734248da9e718791a661020..62bc461b8e7b2680c3e93c0a6822da24bb9fa89c 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
{
case PING_INFO_HOSTNAME:
ret = ENOMEM;
- *buffer_len = strlen (iter->hostname);
+ *buffer_len = strlen (iter->hostname) + 1;
if (orig_buffer_len <= *buffer_len)
break;
/* Since (orig_buffer_len > *buffer_len) `strncpy'