Mercurial > pidgin.yaz
changeset 7633:ee6c31982350
[gaim-migrate @ 8258]
win32, you go to hell. you go to hell and you die!
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Tue, 25 Nov 2003 21:49:42 +0000 |
parents | 925c3ad6531b |
children | 6c2115a8564e |
files | src/util.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;