Mercurial > audlegacy
comparison audacious/playlist.c @ 633:bf9bc9a514ba trunk
[svn] Use g_strchug instead of g_strstrip during playlist load. Trailing whitespace can be a valid occurance. Closes bug #282.
author | chainsaw |
---|---|
date | Sun, 12 Feb 2006 08:59:11 -0800 |
parents | e4e897d20791 |
children | ffc5ab7b4b2c |
comparison
equal
deleted
inserted
replaced
632:6bc44654ebba | 633:bf9bc9a514ba |
---|---|
1309 InputPlugin *dec; /* for decoder cache */ | 1309 InputPlugin *dec; /* for decoder cache */ |
1310 | 1310 |
1311 g_return_if_fail(filename_p != NULL); | 1311 g_return_if_fail(filename_p != NULL); |
1312 g_return_if_fail(playlist_name != NULL); | 1312 g_return_if_fail(playlist_name != NULL); |
1313 | 1313 |
1314 filename = g_strstrip(g_strdup(filename_p)); | 1314 filename = g_strchug(g_strdup(filename_p)); |
1315 | 1315 |
1316 if (cfg.use_backslash_as_dir_delimiter) { | 1316 if (cfg.use_backslash_as_dir_delimiter) { |
1317 while ((tmp = strchr(filename, '\\')) != NULL) | 1317 while ((tmp = strchr(filename, '\\')) != NULL) |
1318 *tmp = '/'; | 1318 *tmp = '/'; |
1319 } | 1319 } |