commit | d63104eea485f72f07c0eed0886890c1090c1f62 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Tue Apr 12 08:02:46 2011 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Tue Apr 12 08:02:46 2011 +0000 |
tree | 922d1ba70db962fc5f9d6d57066b45bcf95c8104 | |
parent | d80bcbcd0fef16a9bf5602fcba5ffa87f5074919 [diff] [blame] |
use memmove() in appropriate places
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h index 3f1e91e..2030988 100644 --- a/src/core/ngx_string.h +++ b/src/core/ngx_string.h
@@ -135,6 +135,10 @@ #endif +#define ngx_memmove(dst, src, n) (void) memmove(dst, src, n) +#define ngx_movemem(dst, src, n) (((u_char *) memmove(dst, src, n)) + (n)) + + /* msvc and icc7 compile memcmp() to the inline loop */ #define ngx_memcmp(s1, s2, n) memcmp((const char *) s1, (const char *) s2, n)