~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_getopt.cc

  • Committer: Monty Taylor
  • Date: 2009-03-19 18:43:15 UTC
  • mfrom: (937.2.9 sparc)
  • mto: (950.1.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 945.
  • Revision ID: mordred@inaugust.com-20090319184315-qsnstre015btk0oq
Merged from Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
580
580
  if ((ptr != NULL) && (end != NULL) && (end - ptr > 1))
581
581
  {
582
582
    uint32_t len= (uint32_t) (ptr - cur_arg);
583
 
    set_if_smaller(len, FN_REFLEN-1);
 
583
    set_if_smaller(len, (uint32_t)FN_REFLEN-1);
584
584
    strncpy(key_name, cur_arg, len);
585
585
    return ++ptr;
586
586
  }