diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-01-26 18:37:28 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-01-26 18:37:28 +0000 |
commit | efab84931049b714049b5b6ddc8bc7aa61196f34 (patch) | |
tree | 430bf97d302ab4db915cb755dff0c7cbf977a2ab | |
parent | 85e0b5f3770fc0bb84b080740dd578169d4e511c (diff) | |
download | zsh-efab84931049b714049b5b6ddc8bc7aa61196f34.tar.gz zsh-efab84931049b714049b5b6ddc8bc7aa61196f34.tar.xz zsh-efab84931049b714049b5b6ddc8bc7aa61196f34.zip |
* 20753: use ZS_memmove instead of memmove.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Zle/zle_params.c | 3 | ||||
-rw-r--r-- | Src/system.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index c221fa65b..773f57eea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-01-26 Clint Adams <clint@zsh.org> + + * 20753: Src/system.h, Src/Zle/zle_params.c: use ZS_memmove + instead of memmove. + 2005-01-26 Peter Stephenson <pws@csr.com> * 20752: Src/system.h, Src/Zle/zle.h, Src/Zle/zle_hist.c, diff --git a/Src/Zle/zle_params.c b/Src/Zle/zle_params.c index 7ea408714..f347e61cf 100644 --- a/Src/Zle/zle_params.c +++ b/Src/Zle/zle_params.c @@ -242,8 +242,7 @@ set_lbuffer(UNUSED(Param pm), char *x) else y = ZLENULSTR, len = 0; sizeline(zlell - zlecs + len); - memmove((char *)(zleline + len), (char *)(zleline + zlecs), - (zlell - zlecs) * ZLE_CHAR_SIZE); + ZS_memmove(zleline + len, zleline + zlecs, zlell - zlecs); ZS_memcpy(zleline, y, len); zlell = zlell - zlecs + len; zlecs = len; diff --git a/Src/system.h b/Src/system.h index 1dccabda8..65e681771 100644 --- a/Src/system.h +++ b/Src/system.h @@ -727,6 +727,7 @@ typedef wchar_t *ZLE_STRING_T; #define ZLETAB L'\t' #define ZLENULSTR L"" #define ZS_memcpy wmemcpy +#define ZS_memmove wmemmove #define ZC_icntrl iswcntrl #else typedef int ZLE_CHAR_T; @@ -738,5 +739,6 @@ typedef unsigned char *ZLE_STRING_T; #define ZLETAB '\t' #define ZLENULSTR "" #define ZS_memcpy memcpy +#define ZS_memmove memmove #define ZC_icntrl icntrl #endif |