From ac772d397d61f470e00cd9023d9372c1c287d63d Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 8 Oct 2007 12:26:43 +0000 Subject: also treat \r as whitespace in configs due to Windows git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@179 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 ee28591..ce7099a 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2410,7 +2410,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