This commit is contained in:
Martin Johnson 2017-03-24 23:36:23 +13:00
parent 11230eb6ed
commit 96817edfda
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
CFLAGS=-std=c99
all: decode recode recode110 extractbmp makever fixbmpheader
decode:
recode: recode.c

View File

@ -86,7 +86,7 @@ int main(int argc,char *argv[]) {
printf("ERROR: index too large %x\n",(off-0x40)/2);
exit(1);
}
long unsigned int j=256;
size_t j=256;
u8_to_u16(st,strlen(st),(short *)(data+off),&j);
off+=j*2;
data[off++]=0;