diff options
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -27,7 +27,7 @@ int getconfstr(char *confname, char *filename, char* dest) { // Check if the next character after the length of the requested option // name is an equals sign, a space, or a tab - if (str[namelen] != '=' && str[namelen] != ' ' && str[namelen] != ' ') { + if (str[namelen] != '=' && str[namelen] != ' ' && str[namelen] != '\t') { // If it isn't this can't have been our option continue; } @@ -58,7 +58,7 @@ int getconfstr(char *confname, char *filename, char* dest) { // Starting from the end of the option name, find the position of the start of the configuration value // (including its double quotes) by skipping over everything that isn't an equals sign, a space, or a tab for (size_t i = namelen; i < strlen(str); i++) { - if (str[i] == '=' || str[i] == ' ' || str[i] == ' ') { + if (str[i] == '=' || str[i] == ' ' || str[i] == '\t') { continue; } else { // Record current/final position in string |