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:
terminx 2012-10-30 16:04:37 +00:00
parent 88c95a18f7
commit 8b02800260

View file

@ -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);