From 2fb6a6ccb4e367b616966326428b2d5d71de978c Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 31 Jan 2013 12:40:00 +0100 Subject: [PATCH] Fix RA-route export again --- src/script.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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++] = ' '; } -- 2.39.5