* pseudo-reloc.cc (__report_error): Raise size of module name buffer to
PATH_MAX. Fix length in call to GetModuleFileNameW (CID 59947).
This commit is contained in:
parent
e0f53cfe6a
commit
d7dd11b8f3
|
@ -1,3 +1,8 @@
|
|||
2014-05-19 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* pseudo-reloc.cc (__report_error): Raise size of module name buffer to
|
||||
PATH_MAX. Fix length in call to GetModuleFileNameW (CID 59947).
|
||||
|
||||
2014-05-19 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* net.cc (call_gaa): Fix setting pa_ret pointer in case of an error
|
||||
|
|
|
@ -85,12 +85,12 @@ __report_error (const char *msg, ...)
|
|||
* cygwin ptys.
|
||||
*/
|
||||
char buf[128];
|
||||
WCHAR module[MAX_PATH];
|
||||
WCHAR module[PATH_MAX];
|
||||
char * posix_module = NULL;
|
||||
static const char UNKNOWN_MODULE[] = "<unknown module>: ";
|
||||
static const char CYGWIN_FAILURE_MSG[] = "Cygwin runtime failure: ";
|
||||
HANDLE errh = GetStdHandle (STD_ERROR_HANDLE);
|
||||
ssize_t modulelen = GetModuleFileNameW (NULL, module, sizeof (module));
|
||||
ssize_t modulelen = GetModuleFileNameW (NULL, module, PATH_MAX);
|
||||
va_list args;
|
||||
|
||||
/* FIXME: cleanup further to avoid old use of cygwin_internal */
|
||||
|
|
Loading…
Reference in New Issue