]> Savannah Git Hosting - gnulib.git/commit
getcwd: Fix crash when invoked with size = 0 on MSVC.
authorBruno Haible <bruno@clisp.org>
Tue, 2 Jul 2019 18:43:00 +0000 (20:43 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 2 Jul 2019 18:43:00 +0000 (20:43 +0200)
commit3e4a348ea6f027e6337a9d0709e7f32422f04f19
tree3c5a39ca8c84b692732a90953c52789fa16996c0
parent7c3bb8672487df690770d3bf96f2c140b7a64b76
getcwd: Fix crash when invoked with size = 0 on MSVC.

* lib/getcwd.c: Include msvc-inval.h.
(getcwd_nothrow): New function/macro.
(getcwd_system): New macro.
(__getcwd): Use it instead of getcwd.
* modules/getcwd (Depends-on): Add msvc-inval.
* doc/posix-functions/getcwd.texi: Mention the MSVC issue.
ChangeLog
doc/posix-functions/getcwd.texi
lib/getcwd.c
modules/getcwd