summaryrefslogtreecommitdiff
path: root/MSVC/readline
diff options
context:
space:
mode:
Diffstat (limited to 'MSVC/readline')
-rw-r--r--MSVC/readline/display.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/MSVC/readline/display.c b/MSVC/readline/display.c
index 3643b6f..0e9a116 100644
--- a/MSVC/readline/display.c
+++ b/MSVC/readline/display.c
@@ -1778,12 +1778,8 @@ rl_message (va_alist)
format = va_arg (args, char *);
#endif
-#if defined (HAVE_VSNPRINTF)
- vsnprintf (msg_buf, sizeof (msg_buf) - 1, format, args);
-#else
- vsprintf (msg_buf, format, args);
+ _vsnprintf (msg_buf, sizeof (msg_buf) - 1, format, args);
msg_buf[sizeof(msg_buf) - 1] = '\0'; /* overflow? */
-#endif
va_end (args);
rl_display_prompt = msg_buf;