diff options
Diffstat (limited to 'readline/savestring.c')
-rw-r--r-- | readline/savestring.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/readline/savestring.c b/readline/savestring.c index 485890e..c7ebeb1 100644 --- a/readline/savestring.c +++ b/readline/savestring.c @@ -20,14 +20,17 @@ have a copy of the license, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ -extern char *strcpy (); -extern char *xmalloc (); +#include <config.h> +#ifdef HAVE_STRING_H +# include <string.h> +#endif +#include "xmalloc.h" /* Backwards compatibility, now that savestring has been removed from all `public' readline header files. */ char * savestring (s) - char *s; + const char *s; { - return ((char *)strcpy (xmalloc (1 + (int)strlen (s)), (s))); + return ((char *)strcpy ((char *)xmalloc (1 + strlen (s)), (s))); } |