X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftpath.c;h=1510465126896652305b3d9474377795830cd4ec;hp=deaf6f4f150281fcd4ba4c507bf9be52bbe08412;hb=fcea26f3542a6097ad258cdbb6e57565366d5f35;hpb=77c5a4fca8b516fd39b8ba213daed17a465a6b2a diff --git a/src/tpath.c b/src/tpath.c index deaf6f4..1510465 100644 --- a/src/tpath.c +++ b/src/tpath.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data + * Copyright (C) 1995-2013 Index Data * See the file LICENSE for details. */ /** @@ -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