[Problem] 64bit address is 8 byte(64bit), so the URI of memory buffer should be assigned to 8 byte string.
The typecast of memory buffer is changed from unsigned int(4 byte) to unsigned long(8 byte).
In 32bit, unsigned int and unsigned long are 4 byte. It has no problem for 32bit.
Change-Id: I09fa95e4c1cf937651c1c4e77d30053f577d7c2d
Signed-off-by: Jiyong Min <jiyong.min@samsung.com>
} else if (fileSrc->type == MM_FILE_SRC_TYPE_MEMORY) {
char tempURIBuffer[MMFILE_URI_MAX_LEN] = {0, };
- snprintf(tempURIBuffer, MMFILE_URI_MAX_LEN, "%s%u:%u", MMFILE_MEM_URI, (unsigned int)fileSrc->memory.ptr, fileSrc->memory.size);
+ snprintf(tempURIBuffer, MMFILE_URI_MAX_LEN, "%s%lu:%u", MMFILE_MEM_URI, (unsigned long)fileSrc->memory.ptr, fileSrc->memory.size);
*urifilename = mmfile_strdup(tempURIBuffer);
if (!*urifilename) {
debug_error("error: uri is NULL\n");
Name: libmm-fileinfo
Summary: Media Fileinfo
-Version: 0.6.49
+Version: 0.6.50
Release: 0
Group: System/Libraries
License: Apache-2.0