From f7c9561ada9071a65a15288ba8c31b0fb66f48da Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 20 Feb 2006 15:27:08 +0000 Subject: small cleanup git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1149 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/static-hosts.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/avahi-daemon/static-hosts.c b/avahi-daemon/static-hosts.c index ae8961b..163ad30 100644 --- a/avahi-daemon/static-hosts.c +++ b/avahi-daemon/static-hosts.c @@ -200,11 +200,14 @@ void static_hosts_load(int in_chroot) { break; } + /* Skip over the host */ + s += len; + /* Skip past any more spaces */ - s += strspn(s+len, " \t"); + s += strspn(s, " \t"); /* Anything left? */ - if (*(s+len) != 0) { + if (*s != 0) { avahi_log_error ("%s:%d: Junk on the end of the line!", filename, line); avahi_free(host); avahi_free(ip); -- cgit