eina: fix strdup calloc, it's number of elements and then size, and not the other way around.

SVN revision: 50898
This commit is contained in:
Tom Hacohen 2010-08-08 12:03:18 +00:00
parent f3f7274796
commit ed0f5eb857
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ eina_unicode_strdup(const Eina_Unicode *text)
int len;
len = eina_unicode_strlen(text);
ustr = (Eina_Unicode *)calloc(sizeof(Eina_Unicode), len + 1);
ustr = (Eina_Unicode *)calloc(len + 1, sizeof(Eina_Unicode));
memcpy(ustr, text, len * sizeof(Eina_Unicode));
return ustr;