From 59c81e2d1e640b56db41bc5a7b17ae6f2f201b01 Mon Sep 17 00:00:00 2001 From: pixel Date: Mon, 27 Dec 2004 18:46:43 +0000 Subject: A few minor changes... --- MSVC/readline/display.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'MSVC') 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; -- cgit v1.2.3