aboutsummaryrefslogtreecommitdiffstats
path: root/console/showriff.c
diff options
context:
space:
mode:
Diffstat (limited to 'console/showriff.c')
-rw-r--r--console/showriff.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/console/showriff.c b/console/showriff.c
index aa9d093..1279425 100644
--- a/console/showriff.c
+++ b/console/showriff.c
@@ -335,9 +335,9 @@ static void dump_jpeg(unsigned char *buf, int len)
static unsigned char*
off_t_to_char(off_t val, int base, int len)
{
- static const char digit[] = "0123456789abcdef";
- static char outbuf[32];
- char *p = outbuf + sizeof(outbuf);
+ static const unsigned char digit[] = "0123456789abcdef";
+ static unsigned char outbuf[32];
+ unsigned char *p = outbuf + sizeof(outbuf);
int i;
*(--p) = 0;
@@ -375,7 +375,7 @@ static boolean ProcessChunk(FILE* f, size_t filepos, size_t filesize,
FOURCC DesiredTag, int RekDepth,
DWORD* chunksize)
{
- char buf[BUFSIZE];
+ unsigned char buf[BUFSIZE];
int buflen;
char tagstr[5]; /* FOURCC of chunk converted to string */
FOURCC chunkid; /* read FOURCC of chunk */

Privacy Policy