# HG changeset patch # User William Pitcock # Date 1184611407 18000 # Node ID 030b956c73b2ffd0e16e5c634a0a5a704b043935 # Parent 20830a69b5f5eb057b4cf1bdeebb17dc72c003a4 Fix a bug in backslash to slash conversion. Closes #1006. diff -r 20830a69b5f5 -r 030b956c73b2 src/audacious/playlist.c --- a/src/audacious/playlist.c Mon Jul 16 13:32:18 2007 -0500 +++ b/src/audacious/playlist.c Mon Jul 16 13:43:27 2007 -0500 @@ -1602,8 +1602,8 @@ filename = g_strchug(g_strdup(filename_p)); if(cfg.convert_slash) - while ((tmp = strchr(filename, '\\')) != NULL) - *tmp = '/'; + while ((tmp = strchr(filename, '\\')) != NULL) + *tmp = '/'; if (filename[0] != '/' && !strstr(filename, "://")) { path = g_strdup(playlist_name); @@ -1664,8 +1664,9 @@ filename = g_strchug(g_strdup(filename_p)); - while ((tmp = strchr(filename, '\\')) != NULL) - *tmp = '/'; + if(cfg.convert_slash) + while ((tmp = strchr(filename, '\\')) != NULL) + *tmp = '/'; if (filename[0] != '/' && !strstr(filename, "://")) { path = g_strdup(playlist_name);