summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-27 08:50:35 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-01-27 08:50:35 +0000
commitaf35f0e080afc5bac3c27332e982c87792baf38f (patch)
treefa2ab41429c327d1645c79ff79b134b94394e548 /Build/source/texk/web2c/luatexdir/tex
parent00434bca559ac03180c0a6c8cff2888d279a69d2 (diff)
texk/web2c/luatexdir: externs and more compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@16842 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/filename.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/filename.c b/Build/source/texk/web2c/luatexdir/tex/filename.c
index 271c8417fec..f6b9746e976 100644
--- a/Build/source/texk/web2c/luatexdir/tex/filename.c
+++ b/Build/source/texk/web2c/luatexdir/tex/filename.c
@@ -26,10 +26,6 @@
static const char _svn_version[] =
"$Id: filename.c 2448 2009-06-08 07:43:50Z taco $ $URL: http://foundry.supelec.fr/svn/luatex/tags/beta-0.40.6/source/texk/web2c/luatexdir/tex/filename.c $";
-/* for use by |scan_file_name|, it comes from fontforge's Unicode library */
-
-extern char *utf8_idpb(char *w, unsigned int i);
-
#define wake_up_terminal() ;
#define clear_terminal() ;
@@ -167,10 +163,10 @@ void scan_file_name(void)
break;
if (cur_chr > 127) {
unsigned char *bytes;
- unsigned char thebytes[5] = { 0 };
- utf8_idpb((char *) thebytes, cur_chr);
+ unsigned char thebytes[4];
+ unsigned char *end = (unsigned char *)utf8_idpb((char *) thebytes, cur_chr);
bytes = thebytes;
- while (*bytes) {
+ while (bytes<end) {
if (!more_name(*bytes))
break;
bytes++;