aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-04-12 08:02:46 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-04-12 08:02:46 +0000
commitd63104eea485f72f07c0eed0886890c1090c1f62 (patch)
tree922d1ba70db962fc5f9d6d57066b45bcf95c8104 /src/core/ngx_string.h
parentd80bcbcd0fef16a9bf5602fcba5ffa87f5074919 (diff)
downloadnginx-d63104eea485f72f07c0eed0886890c1090c1f62.tar.gz
nginx-d63104eea485f72f07c0eed0886890c1090c1f62.zip
use memmove() in appropriate places
Diffstat (limited to 'src/core/ngx_string.h')
-rw-r--r--src/core/ngx_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ngx_string.h b/src/core/ngx_string.h
index 3f1e91e70..2030988d8 100644
--- a/src/core/ngx_string.h
+++ b/src/core/ngx_string.h
@@ -135,6 +135,10 @@ ngx_copy(u_char *dst, u_char *src, size_t len)
#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)