summaryrefslogtreecommitdiffstats
path: root/tools/creative.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/creative.c')
-rw-r--r--tools/creative.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/creative.c b/tools/creative.c
index 6e0e468411..5b8f15abc0 100644
--- a/tools/creative.c
+++ b/tools/creative.c
@@ -52,7 +52,7 @@ extern unsigned int le2int(unsigned char* buf);
static int make_ciff_file(unsigned char *inbuf, int length,
unsigned char *outbuf, int device)
{
- char key[20];
+ unsigned char key[20];
memcpy(outbuf, "FFIC", 4);
int2le(length+90, &outbuf[4]);
memcpy(&outbuf[8], "FNIC", 4);
@@ -68,8 +68,8 @@ static int make_ciff_file(unsigned char *inbuf, int length,
memcpy(&outbuf[0x98+length], "LLUN", 4);
int2le(20, &outbuf[0x98+length+4]);
/* Do checksum */
- hmac_sha((char *)devices[device].null, strlen(devices[device].null),
- (char *)outbuf, 0x98+length, key, 20);
+ hmac_sha((unsigned char *)devices[device].null, strlen(devices[device].null),
+ outbuf, 0x98+length, key, 20);
memcpy(&outbuf[0x98+length+8], key, 20);
return length+0x90+0x1C+8;
}