diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-31 10:09:33 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-31 10:09:33 +0000 |
commit | 346e9b6e425ab35119d28313700964ed5076aa34 (patch) | |
tree | d8430c41580fa7e923169be167740c2e47b77834 /Build/source/texk/web2c/luatexdir/lua | |
parent | 14ac1a5b413c96f4fcaf434ebfd28d620448e01b (diff) |
luaTeX: Handle return value from broken (pre-C99) snprintf()
git-svn-id: svn://tug.org/texlive/trunk@27267 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/luastuff.w | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/luastuff.w b/Build/source/texk/web2c/luatexdir/lua/luastuff.w index 8a43555fae6..510f2607214 100644 --- a/Build/source/texk/web2c/luatexdir/lua/luastuff.w +++ b/Build/source/texk/web2c/luatexdir/lua/luastuff.w @@ -476,7 +476,7 @@ lua_State *luatex_error(lua_State * L, int is_fatal) if (lua_isstring(L, -1)) { luaerr = lua_tolstring(L, -1, &len); err = (char *) xmalloc((unsigned) (len + 1)); - len = (size_t) snprintf(err, (len + 1), "%s", luaerr); + snprintf(err, (len + 1), "%s", luaerr); } if (is_fatal > 0) { /* Normally a memory error from lua. |