diff options
author | Christos Zoulas <christos@zoulas.com> | 2005-10-17 19:04:36 +0000 |
---|---|---|
committer | Christos Zoulas <christos@zoulas.com> | 2005-10-17 19:04:36 +0000 |
commit | 6618301d72de36dbd412a9a89a8a7c6b21f9a13b (patch) | |
tree | 9ed2cf3d5b4aa3ec498dc431dcf3a477d34936bc | |
parent | e4c9e41dcd42c0acc5ee9be40dba9ed78c213420 (diff) | |
download | file-git-6618301d72de36dbd412a9a89a8a7c6b21f9a13b.tar.gz |
change src to unsigned charFILE4_16
-rw-r--r-- | src/softmagic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/softmagic.c b/src/softmagic.c index 1b4dbd3f..2d2742f7 100644 --- a/src/softmagic.c +++ b/src/softmagic.c @@ -39,7 +39,7 @@ #ifndef lint -FILE_RCSID("@(#)$Id: softmagic.c,v 1.75 2005/10/17 18:41:44 christos Exp $") +FILE_RCSID("@(#)$Id: softmagic.c,v 1.76 2005/10/17 19:04:36 christos Exp $") #endif /* lint */ private int match(struct magic_set *, struct magic *, uint32_t, @@ -644,8 +644,8 @@ mcopy(struct magic_set *ms, union VALUETYPE *p, int type, int indir, if (indir == 0 && (type == FILE_BESTRING16 || type == FILE_LESTRING16)) { - const char *src = s + offset; - const char *esrc = s + nbytes; + const unsigned char *src = s + offset; + const unsigned char *esrc = s + nbytes; char *dst = p->s, *edst = &p->s[sizeof(p->s) - 1]; if (type == FILE_BESTRING16) |