summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/xdirname.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/xdirname.c')
-rw-r--r--Build/source/texk/kpathsea/xdirname.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/kpathsea/xdirname.c b/Build/source/texk/kpathsea/xdirname.c
index dee5374754b..62da3d95c9c 100644
--- a/Build/source/texk/kpathsea/xdirname.c
+++ b/Build/source/texk/kpathsea/xdirname.c
@@ -30,11 +30,11 @@ xdirname (const_string name)
{
string ret;
unsigned limit = 0, loc;
-
+
/* Ignore a NULL name. */
if (!name)
return NULL;
-
+
if (NAME_BEGINS_WITH_DEVICE(name)) {
limit = 2;
#if defined(WIN32) || defined(__CYGWIN__)
@@ -51,10 +51,10 @@ xdirname (const_string name)
}
#endif
}
-
+
for (loc = strlen (name); loc > limit && !IS_DIR_SEP (name[loc-1]); loc--)
;
-
+
if (loc == limit && limit > 0) {
if (limit == 2) {
ret = (string)xmalloc(limit + 2);
@@ -75,7 +75,7 @@ xdirname (const_string name)
strncpy(ret, name, loc);
ret[loc] = '\0';
}
-
+
return ret;
}
@@ -98,7 +98,7 @@ char *tab[] = {
"/usr/kpsewhich.exe",
"///usr/kpsewhich.exe",
"///kpsewhich.exe",
- NULL
+ NULL
};
int main()