summaryrefslogtreecommitdiff
path: root/cmd-line-utils/readline/complete.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-line-utils/readline/complete.c')
-rw-r--r--cmd-line-utils/readline/complete.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd-line-utils/readline/complete.c b/cmd-line-utils/readline/complete.c
index 2196c66a54c..5879100e0a6 100644
--- a/cmd-line-utils/readline/complete.c
+++ b/cmd-line-utils/readline/complete.c
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <fcntl.h>
+
#if defined (HAVE_SYS_FILE_H)
# include <sys/file.h>
#endif
@@ -1149,7 +1150,8 @@ compute_lcd_of_matches (match_list, matches, text)
rl_completion_found_quote &&
rl_filename_quoting_desired)
{
- dtext = (*rl_filename_dequoting_function) (text, rl_completion_quote_character);
+ dtext = (*rl_filename_dequoting_function)
+ ((char*) text, rl_completion_quote_character);
text = dtext;
}