diff options
-rw-r--r-- | atari/ctxmenu.c | 1 | ||||
-rw-r--r-- | atari/gemtk/msgbox.c | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/atari/ctxmenu.c b/atari/ctxmenu.c index c81ea349d..2170dec8c 100644 --- a/atari/ctxmenu.c +++ b/atari/ctxmenu.c @@ -123,6 +123,7 @@ void context_popup(struct gui_window * gw, short x, short y) const char * data;
FILE * fp_tmpfile;
char cmdline[128]; + /* skip first byte, which must hold length of commandline: */ char * tempfile = &cmdline[1];
int err = 0;
char * editor, *lastslash; diff --git a/atari/gemtk/msgbox.c b/atari/gemtk/msgbox.c index 050b139f8..89ca75a46 100644 --- a/atari/gemtk/msgbox.c +++ b/atari/gemtk/msgbox.c @@ -26,6 +26,14 @@ # define min(x,y) ((x<y) ? x : y ) #endif +/*** + * Display an message box + * + * \param type Valid values: GEMTK_MSG_BOX_CONFIRM, GEMTK_MSG_BOX_ALERT + * \param msg The message / query to display + * \return 0 on "No" + * + */ short gemtk_msg_box_show(short type, const char * msg) { #define GEMTK_MSG_BOX_STR_SIZE 256 |