summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-11-07 05:58:01 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-11-07 05:58:01 +0000
commit9db696ae0dbd2ef0b498234757e7e7c36d45cf73 (patch)
tree869859849ce1f6e52ae420cb2c44b14d46ea26db
parent3df447d5707e3dbc125cf1adebef17d481cd7eb8 (diff)
strdupa does not exist on BSD. Use simply strdup
SVN revision: 43509
-rw-r--r--legacy/ecore/src/lib/ecore_con/ecore_con_url.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/legacy/ecore/src/lib/ecore_con/ecore_con_url.c b/legacy/ecore/src/lib/ecore_con/ecore_con_url.c
index 413e71aa35..dd8903a3bf 100644
--- a/legacy/ecore/src/lib/ecore_con/ecore_con_url.c
+++ b/legacy/ecore/src/lib/ecore_con/ecore_con_url.c
@@ -776,7 +776,8 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename, const cha
776 { 776 {
777 char *tmp; 777 char *tmp;
778 778
779 tmp = strdupa(filename); 779 tmp = strdup(filename);
780 if (!tmp) return 0;
780 781
781 if (stat(filename, &file_info)) return 0; 782 if (stat(filename, &file_info)) return 0;
782 fd = fopen(filename, "rb"); 783 fd = fopen(filename, "rb");
@@ -796,6 +797,8 @@ ecore_con_url_ftp_upload(Ecore_Con_Url *url_con, const char *filename, const cha
796 curl_easy_setopt(url_con->curl_easy, CURLOPT_READDATA, fd); 797 curl_easy_setopt(url_con->curl_easy, CURLOPT_READDATA, fd);
797 ecore_con_url_url_set(url_con, url); 798 ecore_con_url_url_set(url_con, url);
798 799
800 free(tmp);
801
799 return _ecore_con_url_perform(url_con); 802 return _ecore_con_url_perform(url_con);
800 } 803 }
801 else 804 else