summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-05-15 13:05:56 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2011-05-15 13:05:56 +0000
commit0dc1831510c7e76deab33e5fd5eb97ec4651be5e (patch)
tree9104cdcf38abe3c3d119edef73569cc8f9e7cb4f
parent58f8f4eb033545fc0a8ed999e939775530c4298c (diff)
Increase an initial value of pwdbufsize from 2 to 2048 (from Taco).
git-svn-id: svn://tug.org/texlive/trunk@22483 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index 7f84d3bb6e5..c9963ea9105 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -95,11 +95,16 @@
SyncTeX file name should be full path in the case where
--output-directory option is given.
Borrowed from LuaTeX.
+
+ The 2048 instead of a normal low number like 2. That is because
+ apparently glibc's |getcwd| is buggy: actually executing the
+ loop causes errors later on during execution even though the
+ initial function calls work just fine. (Taco).
*/
char *generic_synctex_get_current_name (void)
{
char *pwdbuf = NULL, *ret;
- int pwdbufsize = 2;
+ int pwdbufsize = 2048;
if (kpse_absolute_p(fullnameoffile, false)) {
return xstrdup(fullnameoffile);
}