diff -r 8cbc438cc298 -r cf499fd51df7 librazor/atomic-ktm.c --- a/librazor/atomic-ktm.c Thu Feb 16 17:33:47 2012 +0000 +++ b/librazor/atomic-ktm.c Sat Aug 23 16:07:09 2014 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2011-2012 J. Ali Harlow + * Copyright (C) 2011, 2012, 2014 J. Ali Harlow * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -36,9 +36,6 @@ #include "razor.h" #include "razor-internal.h" -#define RAZOR_ASCII_ISALPHA(c) \ - ((c) >= 'A' && (c) <= 'Z' || (c) >= 'a' && (c) <= 'z') - static int razor_valid_root_name2(const wchar_t *name) { @@ -187,7 +184,7 @@ return -1; buffer = razor_wstr_create(root, -1); - slash = path; + slash = buffer->len ? SKIP_DRIVE_LETTER(path) : path; for (; *slash != '\0'; slash = next) { next = strpbrk(slash + 1, "/\\");