mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
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:
parent
335fa81b18
commit
03693fc13b
1 changed files with 3 additions and 3 deletions
|
@ -2659,7 +2659,7 @@ static int32_t kzcheckhash(const char *filnam, char **zipnam, int32_t *fileoffs,
|
||||||
(*zipnam) = &kzhashbuf[*(int32_t *)&kzhashbuf[i+8]];
|
(*zipnam) = &kzhashbuf[*(int32_t *)&kzhashbuf[i+8]];
|
||||||
(*fileoffs) = *(int32_t *)&kzhashbuf[i+12];
|
(*fileoffs) = *(int32_t *)&kzhashbuf[i+12];
|
||||||
(*fileleng) = *(int32_t *)&kzhashbuf[i+16];
|
(*fileleng) = *(int32_t *)&kzhashbuf[i+16];
|
||||||
(*iscomp) = *(int32_t *)&kzhashbuf[i+20];
|
(*iscomp) = kzhashbuf[i+20];
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
return(0);
|
return(0);
|
||||||
|
@ -2738,7 +2738,7 @@ int32_t kzaddstack(const char *filnam)
|
||||||
*(int32_t *)&kzhashbuf[kzhashpos+8] = zipnamoffs;
|
*(int32_t *)&kzhashbuf[kzhashpos+8] = zipnamoffs;
|
||||||
*(int32_t *)&kzhashbuf[kzhashpos+12] = LSWAPIB(*(int32_t *)&tempbuf[42]); //fileoffs
|
*(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+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]);
|
strcpy(&kzhashbuf[kzhashpos+21],&tempbuf[46]);
|
||||||
kzhashead[hashind] = kzhashpos; kzlastfnam = kzhashpos; kzhashpos += j;
|
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+8] = zipnamoffs;
|
||||||
*(int32_t *)&kzhashbuf[kzhashpos+12] = k; //fileoffs
|
*(int32_t *)&kzhashbuf[kzhashpos+12] = k; //fileoffs
|
||||||
*(int32_t *)&kzhashbuf[kzhashpos+16] = leng; //fileleng
|
*(int32_t *)&kzhashbuf[kzhashpos+16] = leng; //fileleng
|
||||||
*(int32_t *)&kzhashbuf[kzhashpos+20] = 0; //iscomp
|
kzhashbuf[kzhashpos+20] = 0; //iscomp
|
||||||
strcpy(&kzhashbuf[kzhashpos+21],tempbuf);
|
strcpy(&kzhashbuf[kzhashpos+21],tempbuf);
|
||||||
kzhashead[hashind] = kzhashpos; kzlastfnam = kzhashpos; kzhashpos += j;
|
kzhashead[hashind] = kzhashpos; kzlastfnam = kzhashpos; kzhashpos += j;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue