mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
A pretty useless fix from a newer version of kplib than we forked from. I'm just tired of seeing it in my tree. ;)
git-svn-id: https://svn.eduke32.com/eduke32@3103 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
88c95a18f7
commit
8b02800260
1 changed files with 1 additions and 1 deletions
|
@ -3302,7 +3302,7 @@ void kpzload(const char *filnam, intptr_t *pic, int32_t *bpl, int32_t *xsiz, int
|
|||
(*pic) = 0;
|
||||
if (handle < 0) return;
|
||||
leng = kfilelength(handle);
|
||||
buf = (char *)Bmalloc(leng+1); if (!buf) return;
|
||||
buf = (char *)Bmalloc(leng+1); if (!buf) { kclose(handle); return; }
|
||||
buf[leng]=0; // FIXME: buf[leng] read in kpegrend(), see BUF_LENG_READ
|
||||
kread(handle,buf,leng);
|
||||
kclose(handle);
|
||||
|
|
Loading…
Reference in a new issue