aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/cygheap.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-09-27 05:12:09 +0000
committerChristopher Faylor <me@cgf.cx>2000-09-27 05:12:09 +0000
commite564846577d119c0684ccd3afa8d0103f22160e6 (patch)
tree6b990beb20010ab2de2893d5e4073f284f3afc3a /winsup/cygwin/cygheap.cc
parent03de9775c4a0b867ee6095f462fad959213a0ea7 (diff)
downloadnewlib-e564846577d119c0684ccd3afa8d0103f22160e6.zip
newlib-e564846577d119c0684ccd3afa8d0103f22160e6.tar.gz
newlib-e564846577d119c0684ccd3afa8d0103f22160e6.tar.bz2
* spawn.cc (spawn_guts): Attempt to accomodate archaic windows quoting
mechanism when dealing with '\' and '"'.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index d8e1333..132b230 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -235,3 +235,13 @@ cstrdup (const char *s)
strcpy (p, s);
return p;
}
+
+extern "C" char *__stdcall
+cstrdup1 (const char *s)
+{
+ char *p = (char *) cmalloc (HEAP_1_STR, strlen (s) + 1);
+ if (!p)
+ return NULL;
+ strcpy (p, s);
+ return p;
+}