~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mystrings/bchange.c

Merged build changes from Antony.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    src in a buffer with tot_length bytes.
24
24
*/
25
25
 
26
 
#include <my_global.h>
27
26
#include "m_string.h"
28
27
 
29
28
void bchange(register uchar *dst, size_t old_length, register const uchar *src,
33
32
  if (old_length < new_length)
34
33
    bmove_upp(dst+rest+new_length,dst+tot_length,rest);
35
34
  else
36
 
    bmove(dst+new_length,dst+old_length,rest);
 
35
    memcpy(dst+new_length, dst+old_length, rest);
37
36
  memcpy(dst,src,new_length);
38
37
}