aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/shot
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-08-26 21:34:25 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-08-26 21:34:25 +0000
commitf17997b7cc93bf4e1d824107f046372a0b543e8b (patch)
treebeff6e701835f3418863b8e769644c55adbdb69b /src/modules/shot
parent837d3fa3904413ed8ebd3d7e1d4da797511ca61e (diff)
downloadenlightenment-f17997b7cc93bf4e1d824107f046372a0b543e8b.tar.gz
enlightenment-f17997b7cc93bf4e1d824107f046372a0b543e8b.tar.xz
enlightenment-f17997b7cc93bf4e1d824107f046372a0b543e8b.zip
E17: free the string after copying, not before
reported by Maxime Villard SVN revision: 75717
Diffstat (limited to 'src/modules/shot')
-rw-r--r--src/modules/shot/e_mod_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/shot/e_mod_main.c b/src/modules/shot/e_mod_main.c
index e907e85b0..4658827f2 100644
--- a/src/modules/shot/e_mod_main.c
+++ b/src/modules/shot/e_mod_main.c
@@ -344,8 +344,8 @@ _upload_data_cb(void *data __UNUSED__, int ev_type __UNUSED__, void *event)
n = malloc(strlen(url_ret) + ev->size + 1);
if (n)
{
- free(url_ret);
strcpy(n, url_ret);
+ free(url_ret);
strcat(n, txt);
url_ret = n;
}