diff -r 6112bcc5d1cf -r b2d6a8273459 librazor/atomic-none.c --- a/librazor/atomic-none.c Sat Feb 11 23:50:26 2012 +0000 +++ b/librazor/atomic-none.c Sat Aug 23 17:24:34 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 @@ -78,7 +78,8 @@ strcpy(buffer, root); p = buffer + strlen(buffer); - slash = path; + slash = (p > buffer) ? SKIP_DRIVE_PATH(path) : path; + for (slash = path; *slash != '\0'; slash = next) { #ifdef MSWIN_API next = strpbrk(slash + 1, "/\\");