~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/string.c

Merged current state of use-replace-funcs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
    const char *next_pos= cur_pos;
150
150
 
151
151
    /* Search for quote in each string and replace with escaped quote */
152
 
    while(*(next_pos= strcend(cur_pos, quote_str[0])) != '\0')
 
152
    while((next_pos= strrchr(cur_pos, quote_str[0])) != NULL)
153
153
    {
154
154
      ret&= dynstr_append_mem(str, cur_pos, next_pos - cur_pos);
155
155
      ret&= dynstr_append_mem(str ,"\\", 1);