aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/winf.h
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2007-11-26 21:30:49 +0000
committerChristopher Faylor <me@cgf.cx>2007-11-26 21:30:49 +0000
commitee4388c4200ed46ebeb8509f6dd204a6476017dc (patch)
tree55fd4f1c7f8e169eb4aad0c646333be0cc2a1da3 /winsup/cygwin/winf.h
parent32cba6cb3a8366df854ba24ece2a60f1b2f872a3 (diff)
downloadnewlib-ee4388c4200ed46ebeb8509f6dd204a6476017dc.zip
newlib-ee4388c4200ed46ebeb8509f6dd204a6476017dc.tar.gz
newlib-ee4388c4200ed46ebeb8509f6dd204a6476017dc.tar.bz2
Change many cygheap allocation routines to their *_abort analogs.
* cygheap.cc (cmalloc_abort): New function. (crealloc_abort): Ditto. (ccalloc_abort): Ditto.
Diffstat (limited to 'winsup/cygwin/winf.h')
-rw-r--r--winsup/cygwin/winf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/winf.h b/winsup/cygwin/winf.h
index 8f965e9..079ef30 100644
--- a/winsup/cygwin/winf.h
+++ b/winsup/cygwin/winf.h
@@ -30,7 +30,7 @@ class av
av (): argv (NULL) {}
av (int ac_in, const char * const *av_in) : calloced (0), argc (ac_in), win16_exe (false)
{
- argv = (char **) cmalloc (HEAP_1_ARGV, (argc + 5) * sizeof (char *));
+ argv = (char **) cmalloc_abort (HEAP_1_ARGV, (argc + 5) * sizeof (char *));
memcpy (argv, av_in, (argc + 1) * sizeof (char *));
}
void *operator new (size_t, void *p) __attribute__ ((nothrow)) {return p;}