summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 578ac00)
raw | patch | inline | side by side (parent: 578ac00)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 12:15:39 +0000 (13:15 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Tue, 17 Feb 2009 12:15:39 +0000 (13:15 +0100) |
Signed-off-by: Florian Forster <octo@leeloo.lan.home.verplant.org>
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 02125e26c325a443d7a38976e4931f085199239e..6ffb482c919b430aec964c909d8dfb53103370ff 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
case PING_INFO_HOSTNAME:
ret = ENOMEM;
*buffer_len = strlen (iter->hostname) + 1;
- if (orig_buffer_len <= *buffer_len)
+ if (orig_buffer_len < *buffer_len)
break;
/* Since (orig_buffer_len > *buffer_len) `strncpy'
* will copy `*buffer_len' and pad the rest of