texlive[46696] Build/source/texk/kpathsea: fix a potential bug in

commits+kakuto at tug.org commits+kakuto at tug.org
Wed Feb 21 09:15:23 CET 2018


Revision: 46696
          http://tug.org/svn/texlive?view=revision&revision=46696
Author:   kakuto
Date:     2018-02-21 09:15:23 +0100 (Wed, 21 Feb 2018)
Log Message:
-----------
fix a potential bug in kpathsea/lib.h. Thanks to Douglas McKenna

Modified Paths:
--------------
    trunk/Build/source/texk/kpathsea/ChangeLog
    trunk/Build/source/texk/kpathsea/lib.h

Modified: trunk/Build/source/texk/kpathsea/ChangeLog
===================================================================
--- trunk/Build/source/texk/kpathsea/ChangeLog	2018-02-21 01:18:14 UTC (rev 46695)
+++ trunk/Build/source/texk/kpathsea/ChangeLog	2018-02-21 08:15:23 UTC (rev 46696)
@@ -1,3 +1,8 @@
+2018-02-21  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* lib.h: Fix a bug in LIB_START_FATAL().
+	Private report from Douglas McKenna, 2018/02/21.
+
 2018-02-20  Karl Berry  <karl at freefriends.org>
 
 	* progname.c (expand_symlinks): make error message on unresolvable

Modified: trunk/Build/source/texk/kpathsea/lib.h
===================================================================
--- trunk/Build/source/texk/kpathsea/lib.h	2018-02-21 01:18:14 UTC (rev 46695)
+++ trunk/Build/source/texk/kpathsea/lib.h	2018-02-21 08:15:23 UTC (rev 46696)
@@ -1,7 +1,7 @@
 /* lib.h: declarations for common, low-level routines in kpathsea.
 
    Copyright 1992, 1993, 1994, 1995, 1996, 2008, 2009, 2010, 2011,
-             2012, 2015 Karl Berry.
+             2012, 2015, 2018 Karl Berry.
    Copyright 1999, 2000, 2003, 2005 Olaf Weber.
 
    This library is free software; you can redistribute it and/or
@@ -87,8 +87,13 @@
 #define WARNING4(str, e1, e2, e3, e4)                                   \
   START_WARNING (); fprintf (stderr, str, e1, e2, e3, e4); END_WARNING ()
 
+#if defined (KPSE_COMPAT_API)
 #define LIB_START_FATAL() do { \
-  fprintf (stderr, "%s: fatal: ", kpse->invocation_name);
+  fprintf (stderr, "%s: fatal: ", kpse_def->invocation_name);
+#else
+#define LIB_START_FATAL() do { \
+  fprintf (stderr, "fatal: ");
+#endif
 
 #define LIB_FATAL(str)                                                  \
   LIB_START_FATAL (); fputs (str, stderr); END_FATAL ()



More information about the tex-live-commits mailing list