return (int) strtol(str, NULL, 10);
}
-double ciniparser_getdouble(dictionary *d, char *key, double notfound)
+double ciniparser_getdouble(dictionary *d, const char *key, double notfound)
{
char *str;
}
/* Detect multi-line */
- if (line[len] == '\\') {
+ if (len >= 0 && line[len] == '\\') {
/* Multi-line value */
last = len;
continue;