# HG changeset patch # User Nathan Walp # Date 1069796982 0 # Node ID ee6c319823504938cd1753d55a64cfb047008b3b # Parent 925c3ad6531bea8671785227ec0ad3061f276adb [gaim-migrate @ 8258] win32, you go to hell. you go to hell and you die! committer: Tailor Script diff -r 925c3ad6531b -r ee6c31982350 src/util.c --- a/src/util.c Tue Nov 25 18:56:30 2003 +0000 +++ b/src/util.c Tue Nov 25 21:49:42 2003 +0000 @@ -1198,9 +1198,14 @@ components = g_strsplit(path, delim, -1); len = 0; for (cur = 0; components[cur] != NULL; cur++) { + /* If you don't know what you're doing on both + * win32 and *NIX, stay the hell away from this code */ + if(cur > 1) + dir[len++] = G_DIR_SEPARATOR; strcpy(dir + len, components[cur]); len += strlen(components[cur]); - dir[len++] = G_DIR_SEPARATOR; + if(cur == 0) + dir[len++] = G_DIR_SEPARATOR; if(g_file_test(dir, G_FILE_TEST_IS_DIR)) { continue;