diff options
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index 16a4e190f..db60e6779 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -140,12 +140,11 @@ open_stackdumpfile () p = myself->progname; WCHAR corefile[wcslen (p) + sizeof (".stackdump")]; - wcscpy(corefile, p); + wcpcpy (wcpcpy(corefile, p), L".stackdump"); UNICODE_STRING ucore; OBJECT_ATTRIBUTES attr; /* Create the UNICODE variation of <progname>.stackdump. */ RtlInitUnicodeString (&ucore, corefile); - RtlAppendUnicodeToString (&ucore, L".stackdump"); /* Create an object attribute which refers to <progname>.stackdump in Cygwin's cwd. Stick to caseinsensitivity. */ InitializeObjectAttributes (&attr, &ucore, OBJ_CASE_INSENSITIVE, |