From 46607d651dcaecf4c2d2a1deba7033a0989bc6fc Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Wed, 14 Aug 2013 00:33:57 +0000 Subject: Fix a bug: 'n' and 'f' can be drive letters. git-svn-id: svn://tug.org/texlive/trunk@31426 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 5 +++++ Build/source/texk/kpathsea/mingw32.c | 2 +- Build/source/texk/kpathsea/win32lib.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index 85d11ad90d4..8eba46fcce4 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2013-08-14 Akira Kakuto + + * win32lib.c, mingw32.c (texlive_gs_init()): Fix a bug. 'n' and 'f' can + be drive letters. + 2013-08-12 Akira Kakuto * win32lib.c, mingw32.c (texlive_gs_init()): Do nothing if diff --git a/Build/source/texk/kpathsea/mingw32.c b/Build/source/texk/kpathsea/mingw32.c index c5d2c6e71ab..f6f73719bf7 100644 --- a/Build/source/texk/kpathsea/mingw32.c +++ b/Build/source/texk/kpathsea/mingw32.c @@ -405,7 +405,7 @@ void texlive_gs_init(void) char tlgsbindir[512]; char tlgslibdir[512]; nptr = kpse_var_value("TEXLIVE_WINDOWS_EXTERNAL_GS"); - if (nptr == NULL || *nptr == '0' || *nptr == 'n' || *nptr == 'f') { + if (nptr == NULL || !strcmp(nptr, "0") || !strcmp(nptr, "n") || !strcmp(nptr, "f")) { if (nptr) free (nptr); nptr = kpse_var_value("SELFAUTOPARENT"); diff --git a/Build/source/texk/kpathsea/win32lib.c b/Build/source/texk/kpathsea/win32lib.c index d80967ef2ff..f281d8b7793 100644 --- a/Build/source/texk/kpathsea/win32lib.c +++ b/Build/source/texk/kpathsea/win32lib.c @@ -103,7 +103,7 @@ void texlive_gs_init(void) char tlgsbindir[512]; char tlgslibdir[512]; nptr = kpse_var_value("TEXLIVE_WINDOWS_EXTERNAL_GS"); - if (nptr == NULL || *nptr == '0' || *nptr == 'n' || *nptr == 'f') { + if (nptr == NULL || !strcmp(nptr, "0") || !strcmp(nptr, "n") || !strcmp(nptr, "f")) { if (nptr) free (nptr); nptr = kpse_var_value("SELFAUTOPARENT"); -- cgit v1.2.3