diff options
-rw-r--r-- | dillorc | 2 | ||||
-rw-r--r-- | src/prefsparser.cc | 8 |
2 files changed, 5 insertions, 5 deletions
@@ -186,7 +186,7 @@ search_url="Google http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=%s" # Overall, this is a valuable security measure against TLS stripping # attacks, etc., but in principle a site could contrive to use this as a # tracking mechanism. The term is "HSTS super cookie", although note that these -* HSTS directives are not saved between browser sessions. +# HSTS directives are not saved between browser sessions. #http_strict_transport_security=YES # Set the proxy information for http/https. diff --git a/src/prefsparser.cc b/src/prefsparser.cc index 6bb33b26..31283b65 100644 --- a/src/prefsparser.cc +++ b/src/prefsparser.cc @@ -142,7 +142,7 @@ static int parseOption(char *name, char *value, void PrefsParser::parse(FILE *fp) { char *line, *name, *value, *oldLocale; - int st; + int st, line_number = 1; /* Symbol array, sorted alphabetically */ static SymNode_t symbols[] = { @@ -246,11 +246,11 @@ void PrefsParser::parse(FILE *fp) _MSG("prefsparser: name=%s, value=%s\n", name, value); parseOption(name, value, symbols, sizeof(symbols) / sizeof(symbols[0])); } else if (st < 0) { - MSG_ERR("prefsparser: Syntax error in dillorc:" - " name=\"%s\" value=\"%s\"\n", name, value); + MSG_ERR("prefsparser: Syntax error in dillorc line %d:" + " name=\"%s\" value=\"%s\"\n", line_number, name, value); } - dFree(line); + line_number++; } fclose(fp); |