Author: mdiep
Date: Mon Apr 30 12:13:36 2007
New Revision: 18357
Modified:
trunk/src/library.c
Log:
Small algorithm tweak from RT#41889
Modified: trunk/src/library.c
==============================================================================
--- trunk/src/library.c (original)
+++ trunk/src/library.c Mon Apr 30 12:13:36 2007
@@ -176,7 +176,8 @@
assert(path->encoding == Parrot_fixed_8_encoding_ptr ||
path->encoding == Parrot_utf8_encoding_ptr);
- while ((cnv = strchr(path->strstart, path_separator)) != NULL)
+ cnv = path->strstart;
+ while ((cnv = strchr(cnv, path_separator)) != NULL)
*cnv = win32_path_separator;
}