summaryrefslogtreecommitdiff
path: root/MSVC
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-27 18:46:43 +0000
committerpixel <pixel>2004-12-27 18:46:43 +0000
commit59c81e2d1e640b56db41bc5a7b17ae6f2f201b01 (patch)
tree724239ca0d2a8107ea21acec92713ad019b74e62 /MSVC
parent61b8c1df15bed68858a1ad6d86551538e355680d (diff)
A few minor changes...
Diffstat (limited to 'MSVC')
-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;