~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/default.cc

merge with the latest code from the trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
755
755
      for (value++ ; my_isspace(&my_charset_utf8_general_ci,*value); value++) ;
756
756
      value_end= strchr(value, '\0');
757
757
      /*
758
 
        We don't have to test for value_end >= value as we know there is
759
 
        an '=' before
 
758
       We don't have to test for value_end >= value as we know there is
 
759
       an '=' before
760
760
      */
761
761
      for ( ; my_isspace(&my_charset_utf8_general_ci,value_end[-1]) ; value_end--) ;
762
762
      if (value_end < value)                    /* Empty string */
763
 
        value_end=value;
 
763
        value_end=value;
764
764
 
765
765
      /* remove quotes around argument */
766
766
      if ((*value == '\"' || *value == '\'') && /* First char is quote */
770
770
        value++;
771
771
        value_end--;
772
772
      }
773
 
      ptr= my_stpncpy(strcpy(option,"--")+2,ptr,(size_t) (end-ptr));
 
773
      ptr= strncpy(strcpy(option,"--")+2,ptr,(size_t) (end-ptr));
 
774
      ptr+= strlen(ptr);
774
775
      *ptr++= '=';
775
776
 
776
777
      for ( ; value != value_end; value++)