summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/kpathsea/ChangeLog5
-rw-r--r--Build/source/texk/kpathsea/mingw32.c2
-rw-r--r--Build/source/texk/kpathsea/win32lib.c2
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");