]> granicus.if.org Git - file/commitdiff
change src to unsigned char FILE4_16
authorChristos Zoulas <christos@zoulas.com>
Mon, 17 Oct 2005 19:04:36 +0000 (19:04 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 17 Oct 2005 19:04:36 +0000 (19:04 +0000)
src/softmagic.c

index 1b4dbd3fd6c7c069fef6f5394f8fef91e03f45d0..2d2742f70836656514be39fd61ad8d65f646a38f 100644 (file)
@@ -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)