Ticket #713: bb-fmt-sec.diff
File bb-fmt-sec.diff, 856 bytes (added by , 13 years ago) |
---|
-
bb-support.cpp
1576 1576 int BBMessage(int type, char *text, char *def, char *c1, char *c2) 1577 1577 { 1578 1578 switch(type) { 1579 case BB_MESSAGE: fl_message( text); return 0;1580 case BB_ALERT: fl_alert( text); return 0;1581 case BB_ASK: return fl_ask( text);1582 case BB_CHOICE: return fl_ ask(text, def, c1, c2);1579 case BB_MESSAGE: fl_message("%s", text); return 0; 1580 case BB_ALERT: fl_alert("%s", text); return 0; 1581 case BB_ASK: return fl_ask("%s", text); 1582 case BB_CHOICE: return fl_choice("%s", def, c1, c2, text); 1583 1583 default: return 0; 1584 1584 } 1585 1585 } … … 1768 1768 1769 1769 char *BBGetInput(char *label, char *def) 1770 1770 { 1771 return (char *)fl_input( label, def);1771 return (char *)fl_input("%s", def, label); 1772 1772 } 1773 1773 1774 1774