From 0745c0fb6a9f6d7a8f5b620c15d8b7f59a5c993a Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 25 Feb 2011 01:31:13 +0000 Subject: [PATCH] Correct memory allocation failure messages git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.1.x@447 632fc199-4ca6-4c93-a231-07263d6284db --- turbojpegl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/turbojpegl.c b/turbojpegl.c index 464cf04..94af6d7 100644 --- a/turbojpegl.c +++ b/turbojpegl.c @@ -517,7 +517,7 @@ DLLEXPORT int DLLCALL tjDecompress(tjhandle h, th[i]=compptr->v_samp_factor*DCTSIZE; tmpbufsize+=iw[i]*th[i]; if((outbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*ch[i]))==NULL) - _throw("Memory allocation failed in tjInitDecompress()"); + _throw("Memory allocation failed in tjDecompress()"); for(row=0; rownum_components; i++) { jpeg_component_info *compptr=&dinfo->comp_info[i]; if((tmpbuf[i]=(JSAMPROW *)malloc(sizeof(JSAMPROW)*th[i]))==NULL) - _throw("Memory allocation failed in tjInitDecompress()"); + _throw("Memory allocation failed in tjDecompress()"); for(row=0; row