) {
/* append the current url to the input message */
char *input = g_strconcat(arg->s, url, NULL);
- vb_echo_force(VB_MSG_NORMAL, false, input);
+ vb_echo_force(VB_MSG_NORMAL, false, "%s", input);
g_free(input);
} else {
- vb_echo_force(VB_MSG_NORMAL, false, arg->s);
+ vb_echo_force(VB_MSG_NORMAL, false, "%s", arg->s);
}
vb_set_mode(VB_MODE_COMMAND, false);
gboolean command_hints(const Arg *arg)
{
- vb_echo_force(VB_MSG_NORMAL, false, arg->s);
+ vb_echo_force(VB_MSG_NORMAL, false, "%s", arg->s);
/* mode will be set in hints_create - so we don't neet to do it here */
hints_create(NULL, arg->i, (arg->s ? strlen(arg->s) : 0));
return false;
}
- vb_echo_force(VB_MSG_NORMAL, false, entry);
+ vb_echo_force(VB_MSG_NORMAL, false, "%s", entry);
g_free(entry);
return true;
webkit_web_view_get_main_frame(vb.gui.webview), arg->s, NULL, &value
);
if (success) {
- vb_echo_force(VB_MSG_NORMAL, false, value);
+ vb_echo_force(VB_MSG_NORMAL, false, "%s", value);
} else {
- vb_echo_force(VB_MSG_ERROR, true, value);
+ vb_echo_force(VB_MSG_ERROR, true, "%s", value);
}
g_free(value);
vb_set_mode(VB_MODE_NORMAL, false);
void inputbox_print(gboolean force, const MessageType type, gboolean hide, const char *message);
static void destroy_client();
-void vb_echo_force(const MessageType type,gboolean hide, const char *error, ...)
+void vb_echo_force(const MessageType type, gboolean hide, const char *error, ...)
{
char message[255];
va_list arg_list;