From 694816d7291f17364502ac5d3319684a0b180860 Mon Sep 17 00:00:00 2001 From: Shyam Pallapothu Date: Thu, 21 Apr 2011 09:48:41 -0700 Subject: Fix for issue 4133431 "Remove OSAL layer" in engine part Change-Id: I98f98691048a5afc6f691b0cc3cec92e458e8f44 --- libvideoeditor/osal/src/M4OSA_CharStar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvideoeditor/osal/src/M4OSA_CharStar.c') diff --git a/libvideoeditor/osal/src/M4OSA_CharStar.c b/libvideoeditor/osal/src/M4OSA_CharStar.c index 083e3f2..a9461e2 100755 --- a/libvideoeditor/osal/src/M4OSA_CharStar.c +++ b/libvideoeditor/osal/src/M4OSA_CharStar.c @@ -413,7 +413,7 @@ M4OSA_ERR M4OSA_chrSPrintf(M4OSA_Char *pStrOut, M4OSA_UInt32 strOutMaxLen, return M4ERR_NOT_IMPLEMENTED; #endif - newFormat =(M4OSA_Char*)M4OSA_malloc(newFormatLength, + newFormat =(M4OSA_Char*)M4OSA_32bitAlignedMalloc(newFormatLength, M4OSA_CHARSTAR,(M4OSA_Char*)"M4OSA_chrPrintf: newFormat"); if(M4OSA_NULL == newFormat) return M4ERR_ALLOC; @@ -522,7 +522,7 @@ M4OSA_ERR M4OSA_chrSPrintf(M4OSA_Char *pStrOut, M4OSA_UInt32 strOutMaxLen, err = vsnprintf((char *)pStrOut, (size_t)strOutMaxLen + 1, (const char *)newFormat, marker); va_end(marker); - M4OSA_free((M4OSA_MemAddr32)newFormat); + free(newFormat); if ((err<0) || ((M4OSA_UInt32)err>strOutMaxLen)) { pStrOut[strOutMaxLen] = '\0'; -- cgit v1.1