strdupa does not exist on BSD. Use simply strdup

SVN revision: 43509
This commit is contained in:
Vincent Torri 2009-11-07 05:58:01 +00:00
parent 3df447d570
commit 9db696ae0d
1 changed files with 4 additions and 1 deletions

View File

@ -776,7 +776,8 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename, const cha
{
char *tmp;
tmp = strdupa(filename);
tmp = strdup(filename);
if (!tmp) return 0;
if (stat(filename, &file_info)) return 0;
fd = fopen(filename, "rb");
@ -796,6 +797,8 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename, const cha
curl_easy_setopt(url_con->curl_easy, CURLOPT_READDATA, fd);
ecore_con_url_url_set(url_con, url);
free(tmp);
return _ecore_con_url_perform(url_con);
}
else