summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-20 15:27:08 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-20 15:27:08 +0000
commitf7c9561ada9071a65a15288ba8c31b0fb66f48da (patch)
treedaf3115115c1bde75bec144c963a44f1e5ad634e
parent7b915095afe17e549132c1e28628b4cb26683f5e (diff)
small cleanup
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1149 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-daemon/static-hosts.c7
1 files 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);