diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-06-01 14:51:47 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-06-01 14:51:47 +0000 |
commit | ded1f66c2d5c25cc28333b9f0568c487b7d242ff (patch) | |
tree | c41faa7105f096c8eda9e8ac133095c15f3c7bc1 /winsup/cygwin/exceptions.cc | |
parent | 80a10a3972bea3e13a8134ff992d1bb1063ef6e2 (diff) | |
download | cygnal-ded1f66c2d5c25cc28333b9f0568c487b7d242ff.tar.gz cygnal-ded1f66c2d5c25cc28333b9f0568c487b7d242ff.tar.bz2 cygnal-ded1f66c2d5c25cc28333b9f0568c487b7d242ff.zip |
* exceptions.cc (open_stackdumpfile): Correctly append .stackdump
suffix.
* nlsfuncs.cc (rebase_locale_buf): Reorder arguments. Accommodate
throughout. Add pointer to end of buffer and avoid changing pointers
not pointing into the buffer.
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, |