summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 684d3fd)
raw | patch | inline | side by side (parent: 684d3fd)
author | Florian Forster <octo@verplant.org> | |
Sat, 26 Jan 2008 13:00:02 +0000 (14:00 +0100) | ||
committer | Florian Forster <octo@verplant.org> | |
Sat, 26 Jan 2008 13:00:02 +0000 (14:00 +0100) |
Including the terminating NULL-byte.
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 17071fd8f50bd66b93f1751a6f6144aa684a27b9..0371f158b446efb94f3728c5f6c62159f2b36cfb 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
{
case PING_INFO_USERNAME:
ret = ENOMEM;
- *buffer_len = strlen (iter->username);
+ *buffer_len = strlen (iter->username) + 1;
if (orig_buffer_len <= *buffer_len)
break;
/* Since (orig_buffer_len > *buffer_len) `strncpy'