diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2018-03-05 08:50:30 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2018-03-05 08:50:30 +0000 |
commit | 0ab585a159d6f011c3eb364d7c0dc20424ef0738 (patch) | |
tree | fbcf46fc91ee96a5a91f402308544a397da6675d /Build/source/texk/web2c/luatexdir/lua | |
parent | 6f8f8b8fbbfc91f57fa268a0ba8d817f5d3f3442 (diff) |
fixed a bug in internal string lenght for texluac (many thanks to A. Kakuto)
git-svn-id: svn://tug.org/texlive/trunk@46827 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/texluac.w | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/texluac.w b/Build/source/texk/web2c/luatexdir/lua/texluac.w index 2c515670e55..424c74c77fd 100644 --- a/Build/source/texk/web2c/luatexdir/lua/texluac.w +++ b/Build/source/texk/web2c/luatexdir/lua/texluac.w @@ -285,7 +285,7 @@ static void PrintString(const TString* ts) n=ts->tsv.len; #endif #if (LUA_VERSION_NUM == 503) - n=ts->u.lnglen; + n=(ts->tt == LUA_TSHRSTR ? ts->shrlen : ts->u.lnglen); #endif printf("%c",'"'); for (i=0; i<n; i++) |