~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/readline.cc

  • Committer: Kristian Nielsen
  • Date: 2008-11-28 21:50:38 UTC
  • mto: (632.1.2 devel)
  • mto: This revision was merged to the branch mainline in revision 634.
  • Revision ID: knielsen@odin-20081128215038-ied7uag93fy31s1q
Fix a couple of memcpy() that should be memmove() (caused by wrong
elimination of bmove(), I think there are more lurking in there).

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
  /* Shift stuff down. */
164
164
  if (buffer->start_of_line != buffer->buffer)
165
165
  {
166
 
    memcpy(buffer->buffer, buffer->start_of_line, (uint) bufbytes);
 
166
    memmove(buffer->buffer, buffer->start_of_line, (uint) bufbytes);
167
167
    buffer->end=buffer->buffer+bufbytes;
168
168
  }
169
169