Ticket #713: bb-fmt-sec.diff

File bb-fmt-sec.diff, 856 bytes (added by Jim Ursetto, 12 years ago)
  • bb-support.cpp

     
    15761576int BBMessage(int type, char *text, char *def, char *c1, char *c2)
    15771577{
    15781578  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);
    15831583  default: return 0;
    15841584  }
    15851585}
     
    17681768
    17691769char *BBGetInput(char *label, char *def)
    17701770{
    1771   return (char *)fl_input(label, def);
     1771  return (char *)fl_input("%s", def, label);
    17721772}
    17731773
    17741774