librazor/atomic-ktm.c
changeset 443 b2d6a8273459
parent 424 8cbc438cc298
child 447 0a5e583393e1
     1.1 --- a/librazor/atomic-ktm.c	Thu Feb 16 17:33:47 2012 +0000
     1.2 +++ b/librazor/atomic-ktm.c	Sat Aug 23 17:24:34 2014 +0100
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (C) 2011-2012  J. Ali Harlow <ali@juiblex.co.uk>
     1.6 + * Copyright (C) 2011, 2012, 2014  J. Ali Harlow <ali@juiblex.co.uk>
     1.7   *
     1.8   * This program is free software; you can redistribute it and/or modify
     1.9   * it under the terms of the GNU General Public License as published by
    1.10 @@ -36,9 +36,6 @@
    1.11  #include "razor.h"
    1.12  #include "razor-internal.h"
    1.13  
    1.14 -#define RAZOR_ASCII_ISALPHA(c)	\
    1.15 -			((c) >= 'A' && (c) <= 'Z' || (c) >= 'a' && (c) <= 'z')
    1.16 -
    1.17  static int
    1.18  razor_valid_root_name2(const wchar_t *name)
    1.19  {
    1.20 @@ -187,7 +184,7 @@
    1.21  		return -1;
    1.22  
    1.23  	buffer = razor_wstr_create(root, -1);
    1.24 -	slash = path;
    1.25 +	slash = buffer->len ? SKIP_DRIVE_LETTER(path) : path;
    1.26  
    1.27  	for (; *slash != '\0'; slash = next) {
    1.28  		next = strpbrk(slash + 1, "/\\");