diff options
author | sascha <sascha@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-30 03:11:43 +0000 |
---|---|---|
committer | sascha <sascha@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-30 03:11:43 +0000 |
commit | 5c79ac1b5b17fd094550e141aedd3e48867c7faf (patch) | |
tree | 982d0aaea9aa05d71cf3ab18843d8c42be44557d /shmem | |
parent | b69f74d23a86fe9d435ce5113c49c3d02738c385 (diff) | |
download | libapr-5c79ac1b5b17fd094550e141aedd3e48867c7faf.tar.gz |
Fix mm's memcpy/memset macros; pointer arithmetic was broken.
Patch submitted to author.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59995 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'shmem')
-rw-r--r-- | shmem/unix/mm/mm.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shmem/unix/mm/mm.h b/shmem/unix/mm/mm.h index 314478bd3..531dca1b4 100644 --- a/shmem/unix/mm/mm.h +++ b/shmem/unix/mm/mm.h @@ -122,12 +122,12 @@ extern char *strerror(int); #define memcpy(to,from,len) bcopy(from,to,len) #else #define memcpy(to,from,len) \ - { int i; for (i = 0; i < (len); i++) *((to)+i) = *((from)+i); } + { int i; for (i = 0; i < (len); i++) *((char *)(to)+i) = *((char *)(from)+i); } #endif #endif #if !defined(HAVE_MEMSET) #define memset(to,ch,len) \ - { int i; for (i = 0; i < (len); i++) *((to)+i) = (ch); } + { int i; for (i = 0; i < (len); i++) *((char *)(to)+i) = (ch); } #endif #define ERR(type,str) mm_lib_error_set(type,str) |