diff options
author | Shyam Pallapothu <shyamp@google.com> | 2011-04-21 09:48:41 -0700 |
---|---|---|
committer | Shyam Pallapothu <shyamp@google.com> | 2011-04-21 09:48:41 -0700 |
commit | 694816d7291f17364502ac5d3319684a0b180860 (patch) | |
tree | 21a35b57a0eb154a49999407f466b5fa148d224b /libvideoeditor/osal/src/M4OSA_CharStar.c | |
parent | 32ed3f4dad00f8a65f7e6b38402c70d5341c57eb (diff) | |
download | frameworks_av-694816d7291f17364502ac5d3319684a0b180860.zip frameworks_av-694816d7291f17364502ac5d3319684a0b180860.tar.gz frameworks_av-694816d7291f17364502ac5d3319684a0b180860.tar.bz2 |
Fix for issue 4133431 "Remove OSAL layer" in engine part
Change-Id: I98f98691048a5afc6f691b0cc3cec92e458e8f44
Diffstat (limited to 'libvideoeditor/osal/src/M4OSA_CharStar.c')
-rwxr-xr-x | libvideoeditor/osal/src/M4OSA_CharStar.c | 4 |
1 files changed, 2 insertions, 2 deletions
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'; |