From: Steven Barth Date: Thu, 31 Jan 2013 11:40:00 +0000 (+0100) Subject: Fix RA-route export again X-Git-Tag: debian/1.1+git20160131-1~191 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2fb6a6ccb4e367b616966326428b2d5d71de978c;p=odhcp6c.git Fix RA-route export again --- diff --git a/src/script.c b/src/script.c index f62ea5e..43af988 100644 --- a/src/script.c +++ b/src/script.c @@ -149,11 +149,10 @@ static void entry_to_env(const char *name, const void *data, size_t len, bool ho buf_len += strlen(&buf[buf_len]); } buf_len += snprintf(&buf[buf_len], 24, ",%u", e[i].valid); + buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority); } else { buf_len += snprintf(&buf[buf_len], 24, ",%u,%u", e[i].preferred, e[i].valid); } - if (e[i].priority) - buf_len += snprintf(&buf[buf_len], 12, ",%u", e[i].priority); } buf[buf_len++] = ' '; }