1.1 --- a/librazor/atomic-none.c Sat Feb 11 23:50:26 2012 +0000
1.2 +++ b/librazor/atomic-none.c Thu Sep 11 18:54:16 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 @@ -78,7 +78,8 @@
1.11
1.12 strcpy(buffer, root);
1.13 p = buffer + strlen(buffer);
1.14 - slash = path;
1.15 + slash = (p > buffer) ? SKIP_DRIVE_PATH(path) : path;
1.16 +
1.17 for (slash = path; *slash != '\0'; slash = next) {
1.18 #ifdef MSWIN_API
1.19 next = strpbrk(slash + 1, "/\\");