projects
/
platform
/
core
/
uifw
/
dali-toolkit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change DebugPriority name
[platform/core/uifw/dali-toolkit.git]
/
automated-tests
/
src
/
dali-toolkit
/
dali-toolkit-test-utils
/
test-encoded-image-buffer.cpp
diff --git
a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-encoded-image-buffer.cpp
b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-encoded-image-buffer.cpp
index
e693098
..
ef389ed
100644
(file)
--- a/
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-encoded-image-buffer.cpp
+++ b/
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-encoded-image-buffer.cpp
@@
-33,8
+33,9
@@
EncodedImageBuffer ConvertFileToEncodedImageBuffer(const char* url)
Dali::Vector<uint8_t> data;
data.Resize(size);
fseek(fp, 0, SEEK_SET);
Dali::Vector<uint8_t> data;
data.Resize(size);
fseek(fp, 0, SEEK_SET);
-
fread(data.Begin(), size, sizeof(uint8_t)
, fp);
+
size_t realSize = fread(data.Begin(), sizeof(uint8_t), size
, fp);
fclose(fp);
fclose(fp);
+ data.Resize(realSize);
buffer = EncodedImageBuffer::New(data);
}
return buffer;
buffer = EncodedImageBuffer::New(data);
}
return buffer;