2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Use correct API call to get cygwin path.

[SVN r32440]
This commit is contained in:
John Maddock
2006-01-27 18:47:39 +00:00
parent 19e332dc68
commit 8e596de107
2 changed files with 2 additions and 20 deletions

View File

@@ -685,16 +685,7 @@ void var_expand_unit_test()
# ifdef OS_CYGWIN
char cygpath[256];
{
const char * P = getenv("PATH");
const char * slash = 0;
slash = strchr(P+1,'/');
assert(slash != 0);
strncpy(cygpath,P,slash-P+1);
cygpath[slash-P+1] = '\0';
assert(strlen(cygpath) < 246);
strcat(cygpath,"c/foo/bar");
}
cygwin_conv_to_posix_path("c:\\foo\\bar", cygpath);
# else
char cygpath[] = "/cygdrive/c/foo/bar";
# endif

View File

@@ -685,16 +685,7 @@ void var_expand_unit_test()
# ifdef OS_CYGWIN
char cygpath[256];
{
const char * P = getenv("PATH");
const char * slash = 0;
slash = strchr(P+1,'/');
assert(slash != 0);
strncpy(cygpath,P,slash-P+1);
cygpath[slash-P+1] = '\0';
assert(strlen(cygpath) < 246);
strcat(cygpath,"c/foo/bar");
}
cygwin_conv_to_posix_path("c:\\foo\\bar", cygpath);
# else
char cygpath[] = "/cygdrive/c/foo/bar";
# endif