* spawn.cc (spawn_guts): Attempt to accomodate archaic windows quoting

mechanism when dealing with '\' and '"'.
This commit is contained in:
Christopher Faylor
2000-09-27 05:12:09 +00:00
parent 03de9775c4
commit e564846577
4 changed files with 31 additions and 11 deletions

View File

@@ -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;
}