diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-26 17:57:57 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-26 17:57:57 +0000 |
commit | e8865ad8a07a7902494edd8f9c36a88930dc4450 (patch) | |
tree | 141b6d22c469b502c34c9ab4ec4e6246871fcc9e /indep.c | |
parent | typo (diff) | |
download | w3m-e8865ad8a07a7902494edd8f9c36a88930dc4450.tar.gz w3m-e8865ad8a07a7902494edd8f9c36a88930dc4450.zip |
[w3m-dev 02735]
From: "OMAE, jun" <jun-o@dai.meta.ne.jp>
Diffstat (limited to 'indep.c')
-rw-r--r-- | indep.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: indep.c,v 1.20 2001/12/25 16:19:29 ukai Exp $ */ +/* $Id: indep.c,v 1.21 2001/12/26 17:57:57 ukai Exp $ */ #include "fm.h" #include <stdio.h> #include <pwd.h> @@ -20,11 +20,11 @@ bcopy(const void *src, void *dest, int len) return; if (src < dest) { for (i = len - 1; i >= 0; i--) - dest[i] = src[i]; + ((char *)dest)[i] = ((const char *)src)[i]; } else { /* src > dest */ for (i = 0; i < len; i++) - dest[i] = src[i]; + ((char *)dest)[i] = ((const char *)src)[i]; } } @@ -32,8 +32,9 @@ void bzero(void *ptr, int len) { int i; + char *p = ptr; for (i = 0; i < len; i++) - *(ptr++) = 0; + *(p++) = 0; } #endif /* not HAVE_BCOPY */ |