projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c53190
)
zero the header info before writing it. this wasn't a critical bug, but it might...
author
tsauerbeck
<tsauerbeck>
Sat, 17 Jan 2004 15:01:19 +0000
(15:01 +0000)
committer
tsauerbeck
<tsauerbeck@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 17 Jan 2004 15:01:19 +0000
(15:01 +0000)
SVN revision: 8521
legacy/eet/src/lib/eet_data.c
patch
|
blob
|
history
diff --git
a/legacy/eet/src/lib/eet_data.c
b/legacy/eet/src/lib/eet_data.c
index 874716c18d39585bbb8afaa4cb48e012d07ed716..41cd8cdb2599b106ce71605b533b598bed3b8810 100644
(file)
--- a/
legacy/eet/src/lib/eet_data.c
+++ b/
legacy/eet/src/lib/eet_data.c
@@
-471,12
+471,15
@@
eet_data_image_lossless_convert(int *size, void *data, int w, int h, int alpha)
d = malloc((w * h * 4) + (8 * 4));
if (!d) return NULL;
+
header = (int *)d;
+ memset(d, 0, 32);
+
header[0] = 0xac1dfeed;
header[1] = w;
header[2] = h;
header[3] = alpha;
- header[4] = 0;
+
memcpy(d + 32, data, w * h * 4);
if (words_bigendian)
@@
-519,6
+522,8
@@
eet_data_image_lossless_compressed_convert(int *size, void *data, int w, int h,
return NULL;
}
header = (int *)d;
+ memset(d, 0, 32);
+
header[0] = 0xac1dfeed;
header[1] = w;
header[2] = h;
@@
-1251,7
+1256,6
@@
eet_data_image_read(Eet_File *ef, char *name,
void *data;
int size;
unsigned int *d = NULL;
- int header[8];
data = eet_read(ef, name, &size);
if (!data) return NULL;