summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Misc.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/Misc.c b/Misc.c
index b4d2fdb..85f0379 100644
--- a/Misc.c
+++ b/Misc.c
@@ -3,6 +3,8 @@
#include <proto/intuition.h>
#include <proto/dos.h>
+#include <stdarg.h>
+
#include "Bobi.h"
extern struct Screen *mainscreen;
@@ -19,10 +21,16 @@ extern BYTE arexxflag;
** Requester mit einem OK-Gadget anzeigen
*/
-void ShowMonoReq2(char *text)
+void ShowMonoReq2(char *text,...)
{
+ char buf[256];
+ va_list args;
+
+ va_start(args,text);
+ vsprintf(buf,text,args);
+
LockWindows();
- ShowRequest(text,0," OK ",0x8000);
+ ShowRequest(buf,0," OK ",0x8000);
UnLockWindows();
}