summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/make-suffix.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2010-05-15 01:55:00 +0000
commitff95b300f8204c215384425032124f206349bca2 (patch)
treeabdb4fced025cb35b974f9f0ba0c7d6c9fd01094 /Build/source/texk/kpathsea/make-suffix.c
parent64252d2baf23bb55ca90c388215779740c73e695 (diff)
remove trailing spaces.
git-svn-id: svn://tug.org/texlive/trunk@18276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/make-suffix.c')
-rw-r--r--Build/source/texk/kpathsea/make-suffix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/kpathsea/make-suffix.c b/Build/source/texk/kpathsea/make-suffix.c
index 8962d7cc2ee..c578ab2b7a6 100644
--- a/Build/source/texk/kpathsea/make-suffix.c
+++ b/Build/source/texk/kpathsea/make-suffix.c
@@ -20,7 +20,7 @@
#include <kpathsea/c-pathch.h>
/* Return a new string: S suffixed with SUFFIX, regardless of what it
- was before. This returns a newly allocated string. */
+ was before. This returns a newly allocated string. */
string
make_suffix (const_string s, const_string suffix)
@@ -28,7 +28,7 @@ make_suffix (const_string s, const_string suffix)
string new_s;
const_string dot_pos = strrchr (s, '.');
const_string slash_pos;
-
+
for (slash_pos = s + strlen (s) - 1; slash_pos > dot_pos && slash_pos > s;
slash_pos--) {
if (IS_DIR_SEP (*slash_pos))
@@ -40,7 +40,7 @@ make_suffix (const_string s, const_string suffix)
else
{
unsigned past_dot_index = dot_pos + 1 - s;
-
+
new_s = (string)xmalloc (past_dot_index + strlen (suffix) + 1);
strncpy (new_s, s, dot_pos + 1 - s);
strcpy (new_s + past_dot_index, suffix);