kplib: don't write an int32_t where a char is expected.

git-svn-id: https://svn.eduke32.com/eduke32@3853 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2013-06-06 11:22:39 +00:00
parent 335fa81b18
commit 03693fc13b
1 changed files with 3 additions and 3 deletions

View File

@ -2659,7 +2659,7 @@ static int32_t kzcheckhash(const char *filnam, char **zipnam, int32_t *fileoffs,
(*zipnam) = &kzhashbuf[*(int32_t *)&kzhashbuf[i+8]];
(*fileoffs) = *(int32_t *)&kzhashbuf[i+12];
(*fileleng) = *(int32_t *)&kzhashbuf[i+16];
(*iscomp) = *(int32_t *)&kzhashbuf[i+20];
(*iscomp) = kzhashbuf[i+20];
return(1);
}
return(0);
@ -2738,7 +2738,7 @@ int32_t kzaddstack(const char *filnam)
*(int32_t *)&kzhashbuf[kzhashpos+8] = zipnamoffs;
*(int32_t *)&kzhashbuf[kzhashpos+12] = LSWAPIB(*(int32_t *)&tempbuf[42]); //fileoffs
*(int32_t *)&kzhashbuf[kzhashpos+16] = 0; //fileleng not used for ZIPs (reserve space for simplicity)
*(int32_t *)&kzhashbuf[kzhashpos+20] = 1; //iscomp
kzhashbuf[kzhashpos+20] = 1; //iscomp
strcpy(&kzhashbuf[kzhashpos+21],&tempbuf[46]);
kzhashead[hashind] = kzhashpos; kzlastfnam = kzhashpos; kzhashpos += j;
@ -2768,7 +2768,7 @@ int32_t kzaddstack(const char *filnam)
*(int32_t *)&kzhashbuf[kzhashpos+8] = zipnamoffs;
*(int32_t *)&kzhashbuf[kzhashpos+12] = k; //fileoffs
*(int32_t *)&kzhashbuf[kzhashpos+16] = leng; //fileleng
*(int32_t *)&kzhashbuf[kzhashpos+20] = 0; //iscomp
kzhashbuf[kzhashpos+20] = 0; //iscomp
strcpy(&kzhashbuf[kzhashpos+21],tempbuf);
kzhashead[hashind] = kzhashpos; kzlastfnam = kzhashpos; kzhashpos += j;
}