]> git.wh0rd.org - fontconfig.git/commit
FcStrCanonFileName buggy for mingw. (bug 8311)
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 17 Sep 2006 21:34:46 +0000 (14:34 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Sun, 17 Sep 2006 21:34:46 +0000 (14:34 -0700)
commit1de7a4cc09172bbc99912e1410f46fc16c1a05ec
tree25162912749940dad752e24206380644467d5279
parentcc104e6a910427db009be36ec34125962889ecb8
FcStrCanonFileName buggy for mingw. (bug 8311)

FcStrCanonFileName checks whether s[0] == '/', and recurses if not.

This only works on POSIX. On dos, this crashes with a stack overflow.

The patch attached splits this functionality in two functions
(FcStrCanonAbsoluteFilename) and uses GetFullPathName on windows to get an
absolute path.  It also fixes a number of other issues. With this patch,
LilyPond actually produces output on Windows.
src/fccache.c
src/fcstr.c