]> granicus.if.org Git - yasm/commit
Fix #118: Don't use getcwd(NULL, 0), as it's platform-specific behavior.
authorPeter Johnson <peter@tortall.net>
Tue, 16 Oct 2007 07:40:21 +0000 (07:40 -0000)
committerPeter Johnson <peter@tortall.net>
Tue, 16 Oct 2007 07:40:21 +0000 (07:40 -0000)
commit02378aa9e609ad147a334a958cc5a7d522e58901
treed8fa323eec0d7c2f44f4ee458d7331d71a6ff8cf
parent86206d60a80187d533b5fba85e0800a484c2a5ea
Fix #118: Don't use getcwd(NULL, 0), as it's platform-specific behavior.

Instead write our own yasm__getcwd() which retries getcwd() with
increasing buffer sizes until the path fits (as the initial size is 1024,
in basically all cases it'll succeed on the first try).

Reported by: bird-yasm@anduin.net

svn path=/trunk/yasm/; revision=2004
libyasm/file.c
libyasm/file.h
modules/dbgfmts/dwarf2/dwarf2-info.c