Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : screenshot

Dir     : e_modules/screenshot


Modified Files:
        e_mod_main.c 


Log Message:
Fix potential segfault where filename was not set.

===================================================================
RCS file: /cvs/e/e_modules/screenshot/e_mod_main.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- e_mod_main.c        4 Jul 2006 09:17:32 -0000       1.54
+++ e_mod_main.c        4 Jul 2006 09:29:00 -0000       1.55
@@ -404,7 +404,8 @@
 EAPI int
 e_modapi_about(E_Module *m)
 {
-   e_module_dialog_show(m, D_("Enlightenment Screenshot Module"), D_("This 
module is used to take screenshots"));
+   e_module_dialog_show(m, D_("Enlightenment Screenshot Module"), 
+                       D_("This module is used to take screenshots"));
    return 1;
 }
 
@@ -446,6 +447,9 @@
             char *f = _get_filename(ci);
             inst->filename = evas_stringshare_add(f);
          }
+       else
+         inst->filename = evas_stringshare_add(ci->filename);
+       
        _ss_take_shot(inst);
      }
    else
@@ -553,7 +557,7 @@
               c = 1;
              else 
               c++;
-             snprintf(buff, sizeof(buff), "%s%i.png", strdup(ci->filename), c);
+             snprintf(buff, sizeof(buff), "%s%i.png", ci->filename, c);
           }
      }
    return strdup(buff);



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to