diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-15 00:02:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-15 00:02:57 +0000 |
commit | 59960f651d84055ca449f142e10097c273cb1a0c (patch) | |
tree | 4e1451bebe4483112aed321c4411838dde18822a /winsup/cygwin/hookapi.cc | |
parent | ae37cc121868a4554b5118c8ad45f5493333b39e (diff) | |
download | cygnal-59960f651d84055ca449f142e10097c273cb1a0c.tar.gz cygnal-59960f651d84055ca449f142e10097c273cb1a0c.tar.bz2 cygnal-59960f651d84055ca449f142e10097c273cb1a0c.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/hookapi.cc')
-rw-r--r-- | winsup/cygwin/hookapi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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++) |