* eet: fix use of garbage data.

SVN revision: 51920
This commit is contained in:
Cedric BAIL 2010-09-06 10:54:03 +00:00
parent e2b4501a74
commit c119195b94
1 changed files with 3 additions and 3 deletions

View File

@ -2271,7 +2271,7 @@ eet_write_cipher(Eet_File *ef,
unsigned int data_ciphered_sz = 0;
const void *tmp;
tmp = data2 ? data2 : data;
tmp = comp ? data2 : data;
if (!eet_cipher(tmp, data_size, cipher_key, strlen(cipher_key),
&data_ciphered, &data_ciphered_sz))
{
@ -2291,8 +2291,8 @@ eet_write_cipher(Eet_File *ef,
}
}
else
if (!comp)
memcpy(data2, data, size);
if (!comp)
memcpy(data2, data, size);
/* Does this node already exist? */
for (efn = ef->header->directory->nodes[hash]; efn; efn = efn->next)