summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvenaas <venaas>2007-10-08 12:26:43 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-10-08 12:26:43 +0000
commitac772d397d61f470e00cd9023d9372c1c287d63d (patch)
tree718871a8dca11151d34a156a79f90364d3bf632e
parent63f5bf0aafc2c094ebd8fd8797f3326d195816fd (diff)
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
-rw-r--r--radsecproxy.c2
1 files changed, 1 insertions, 1 deletions
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])