From 8fc8fb12dc9534df6c2bb34b7f2e7349546c396c Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 8 Oct 2007 12:27:26 +0000 Subject: also treat \r as whitespace in configs due to Windows git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@180 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 5f51d10..dd228c7 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2024,7 +2024,7 @@ void getgeneralconfig(FILE *f, char *block, ...) { while (fgets(line, 1024, f)) { s = line; for (tcount = 0; tcount < 3; tcount++) { - s = strtokenquote(s, &tokens[tcount], " \t\n", "\"'", tcount ? NULL : "#"); + s = strtokenquote(s, &tokens[tcount], " \t\r\n", "\"'", tcount ? NULL : "#"); if (!s) debugx(1, DBG_ERR, "Syntax error in line starting with: %s", line); if (!tokens[tcount]) -- cgit v1.1