summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/rm-suffix.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-12-11 14:28:06 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-12-11 14:28:06 +0000
commit3226a8894c9f90a96a776fe36456af2cc2d078c7 (patch)
tree5d1387ede5191c9dc0ca5a1b113642cc04c48d32 /Build/source/texk/kpathsea/rm-suffix.c
parentfc101b568d7547030fceb58ab5f097d457d49c57 (diff)
kpathsea: Resolve some const related problems
git-svn-id: svn://tug.org/texlive/trunk@28500 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/kpathsea/rm-suffix.c')
-rw-r--r--Build/source/texk/kpathsea/rm-suffix.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/Build/source/texk/kpathsea/rm-suffix.c b/Build/source/texk/kpathsea/rm-suffix.c
index 49a100da3ee..289847de455 100644
--- a/Build/source/texk/kpathsea/rm-suffix.c
+++ b/Build/source/texk/kpathsea/rm-suffix.c
@@ -1,6 +1,6 @@
/* rm-suffix.c: remove any suffix.
- Copyright 2008, 2011 Karl Berry.
+ Copyright 2008, 2011, 2012 Karl Berry.
Copyright 1992, 1993, 1995 Free Software Foundation, Inc.
Modified for kpathsea by Karl Berry.
@@ -20,8 +20,6 @@
#include <kpathsea/config.h>
-/* Generic const warning -- see readable.c. */
-
string
remove_suffix (const_string s)
{
@@ -37,7 +35,7 @@ remove_suffix (const_string s)
ret[suffix - s] = 0;
}
else
- ret = (string) s;
+ ret = xstrdup (s);
return ret;
}