~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 21:09:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326210937-17omiwlkga797122
sprintf->snprintf in drizzled/sql_parse.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
695
695
  */
696
696
  if ((var= get_system_var(session, OPT_SESSION, tmp, null_lex_string)))
697
697
  {
698
 
    end+= sprintf(buff, "@@session.%s", var_name);
 
698
    end+= snprintf(buff, sizeof(buff), "@@session.%s", var_name);
699
699
    var->set_name(buff, end-buff, system_charset_info);
700
700
    session->add_item_to_list(var);
701
701
  }