|
|
@ -1,4 +1,4 @@
|
|
|
|
/* $Id: menu.c,v 1.52 2005/08/07 17:58:05 stpohle Exp $
|
|
|
|
/* $Id: menu.c,v 1.53 2006/02/06 21:18:01 stpohle Exp $
|
|
|
|
* Menuhandling */
|
|
|
|
* Menuhandling */
|
|
|
|
|
|
|
|
|
|
|
|
#include "basic.h"
|
|
|
|
#include "basic.h"
|
|
|
@ -629,7 +629,7 @@ menu_displaymessage (char *title, char *fmt, ...)
|
|
|
|
memset (text, 0, sizeof (text));
|
|
|
|
memset (text, 0, sizeof (text));
|
|
|
|
memset (out, 0, sizeof (out));
|
|
|
|
memset (out, 0, sizeof (out));
|
|
|
|
va_start (args, fmt);
|
|
|
|
va_start (args, fmt);
|
|
|
|
vsprintf (text, fmt, args);
|
|
|
|
vsnprintf (text, 512, fmt, args);
|
|
|
|
va_end (args);
|
|
|
|
va_end (args);
|
|
|
|
|
|
|
|
|
|
|
|
menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
|
|
|
|
menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
|
|
|
@ -722,7 +722,7 @@ menu_displaytext (char *title, char *fmt, ...)
|
|
|
|
memset (text, 0, sizeof (text));
|
|
|
|
memset (text, 0, sizeof (text));
|
|
|
|
memset (out, 0, sizeof (out));
|
|
|
|
memset (out, 0, sizeof (out));
|
|
|
|
va_start (args, fmt);
|
|
|
|
va_start (args, fmt);
|
|
|
|
vsprintf (text, fmt, args);
|
|
|
|
vsnprintf (text, 512, fmt, args);
|
|
|
|
va_end (args);
|
|
|
|
va_end (args);
|
|
|
|
|
|
|
|
|
|
|
|
menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
|
|
|
|
menu_formattext (text, out, lines, &linenr, &maxlinelen, MENU_MESSAGES_MAXLINELEN,
|
|
|
|