summaryrefslogtreecommitdiff
path: root/3rdparty/libconfig/libconfig.c
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/libconfig/libconfig.c')
-rw-r--r--3rdparty/libconfig/libconfig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c
index 358c415f5..8f2b3fb42 100644
--- a/3rdparty/libconfig/libconfig.c
+++ b/3rdparty/libconfig/libconfig.c
@@ -40,7 +40,7 @@
#include <string.h>
#include <ctype.h>
-#define PATH_TOKENS ":./"
+#define PATH_TOKENS ":/"
#define CHUNK_SIZE 16
#define FLOAT_PRECISION 10
@@ -537,12 +537,13 @@ static int __config_validate_name(const char *name)
if(*p == '\0')
return(CONFIG_FALSE);
- if(! isalpha((int)*p) && (*p != '*'))
+ if(! isalpha((int)*p) && !isdigit((int)*p) && (*p != '*')) {
return(CONFIG_FALSE);
+ }
for(++p; *p; ++p)
{
- if(! (isalpha((int)*p) || isdigit((int)*p) || strchr("*_-'", (int)*p)))
+ if(! (isalpha((int)*p) || isdigit((int)*p) || strchr("*_-'.", (int)*p)))
return(CONFIG_FALSE);
}