diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-08-14 00:33:57 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2013-08-14 00:33:57 +0000 |
commit | 46607d651dcaecf4c2d2a1deba7033a0989bc6fc (patch) | |
tree | 0134b25f3bd1f9ebf5766d4dd0b94497782a11c5 /Build | |
parent | 7b01a10cd6a2e1f25e7e56ae3d15a363c2bda441 (diff) |
Fix a bug: 'n' and 'f' can be drive letters.
git-svn-id: svn://tug.org/texlive/trunk@31426 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/kpathsea/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/kpathsea/mingw32.c | 2 | ||||
-rw-r--r-- | 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 <kakuto@fuk.kindai.ac.jp> + + * win32lib.c, mingw32.c (texlive_gs_init()): Fix a bug. 'n' and 'f' can + be drive letters. + 2013-08-12 Akira Kakuto <kakuto@fuk.kindai.ac.jp> * 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"); |