Patch [ecj]: Use PATH_SEPARATOR in jcf_path_compute
Mohan Embar
gnustuff@thisiscool.com
Thu Dec 7 07:09:00 GMT 2006
This should probably go on the trunk too for good form.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/
2006-12-07 Mohan Embar <gnustuff@thisiscool.com>
* jcf-path.c (jcf_path_compute): Use platform PATH_SEPARATOR.
Index: jcf-path.c
===================================================================
--- jcf-path.c (revision 119567)
+++ jcf-path.c (working copy)
@@ -457,6 +457,9 @@
return (void *) ent->next;
}
+static const char
+PATH_SEPARATOR_STR[] = {PATH_SEPARATOR, '\0'};
+
char *
jcf_path_compute (const char *prefix)
{
@@ -474,7 +477,7 @@
for (iter = sealed; iter != NULL; iter = iter->next)
{
if (! first)
- strcat (result, ":");
+ strcat (result, PATH_SEPARATOR_STR);
first = 0;
strcat (result, iter->name);
/* Ugly: we want to strip the '/' from zip entries when
More information about the Java-patches
mailing list