From d99d238b55887c332dc34d4e3c80c22e11745440 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 25 Jul 2014 15:14:03 +0200 Subject: Correct signedness of mot header --- src/mot-encoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mot-encoder.cpp') diff --git a/src/mot-encoder.cpp b/src/mot-encoder.cpp index b885780..fc60f62 100644 --- a/src/mot-encoder.cpp +++ b/src/mot-encoder.cpp @@ -547,8 +547,8 @@ encodefile_out: void createMotHeader(size_t blobsize, int fidx, unsigned char* mothdr, int* mothdrlen) { struct stat s; - char MotHeaderCore[7] = {0x00,0x00,0x00,0x00,0x0D,0x04,0x01}; - char MotHeaderExt[19] = {0x85,0x00,0x00,0x00,0x00,0xcc,0x0c, + uint8_t MotHeaderCore[7] = {0x00,0x00,0x00,0x00,0x0D,0x04,0x01}; + uint8_t MotHeaderExt[19] = {0x85,0x00,0x00,0x00,0x00,0xcc,0x0c, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; char cntemp[12]; int i; -- cgit v1.2.3