X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftpath.c;h=098b1b2ea5a4ab1e39d3156cbdbf13309132d778;hp=deaf6f4f150281fcd4ba4c507bf9be52bbe08412;hb=5242cb5a8634bfa38b9333ff7f903e718ac6e292;hpb=7b27a8f378d73a86e8ff5e4fa3285117362481c5 diff --git a/src/tpath.c b/src/tpath.c index deaf6f4..098b1b2 100644 --- a/src/tpath.c +++ b/src/tpath.c @@ -56,7 +56,7 @@ size_t yaz_filepath_comp(const char **path_p, const char **comp) path_sep = strchr(path+2, ':'); else path_sep = 0; - + if (path_sep) { len = path_sep - path; @@ -82,7 +82,7 @@ char *yaz_filepath_resolve(const char *fname, const char *path, { struct stat stat_buf; size_t slen = 0; - + *fullpath = '\0'; if (path) { @@ -131,7 +131,7 @@ int yaz_is_abspath(const char *p) #ifdef WIN32 if (*p == '\\') return 1; - if (*p && p[1] == ':' && + if (*p && p[1] == ':' && ((*p >= 'A' && *p <= 'Z') || (*p >= 'a' && *p <= 'z'))) return 1; #endif