From 59960f651d84055ca449f142e10097c273cb1a0c Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 15 Sep 2005 00:02:57 +0000 Subject: * hookapi.cc (hook_or_detect_cygwin): Simplify very slightly. * spawn.cc (av::fixup): Guard against problems reading an executable which does not match Microsoft's documentation about PE format. --- winsup/cygwin/hookapi.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/hookapi.cc') diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index 08e257ba1..8539d2a7a 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -185,7 +185,7 @@ hook_or_detect_cygwin (const char *name, const void *fn) function_hook fh; fh.origfn = NULL; fh.hookfn = fn; - char *buf = fn ? NULL : (char *) alloca (strlen (name) + strlen ("64") + sizeof ("_")); + char *buf = fn ? NULL : (char *) alloca (strlen (name) + sizeof ("_64")); int i; // Iterate through each import descriptor, and redirect if appropriate for (PIMAGE_IMPORT_DESCRIPTOR pd = pdfirst; pd->FirstThunk; pd++) -- cgit v1.2.3