Enlightenment CVS committal Author : codewarrior Project : e17 Module : apps/e_utils
Dir : e17/apps/e_utils/src/bin/e17setroot Modified Files: e17setroot.c Log Message: use snprinft and not strcat. thanks tilman, someone fix if (strcmp(filename + strlen(filename) - 4, ".edj") == 0) { at some point, added quick hack to get past it as I dont have time right now. (along with any other stract calls) =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e_utils/src/bin/e17setroot/e17setroot.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -3 -r1.23 -r1.24 --- e17setroot.c 19 Jul 2005 11:01:49 -0000 1.23 +++ e17setroot.c 19 Jul 2005 12:59:56 -0000 1.24 @@ -166,7 +166,7 @@ Engrave_Part_State *ps; /* make sure we got a file name */ - if (!filename) return; + if (!filename || strlen(filename) <= 4) return; file = ecore_file_get_file(filename); dir = ecore_file_get_dir(filename); @@ -191,9 +191,7 @@ system(static_bg); _e_bg_bg_set(filename); - strcpy(esetroot_s, "Esetroot "); - strcat(esetroot_s, esetroot_opt); - strcat(esetroot_s, filename_s); + snprintf(esetroot_s, PATH_MAX, "Esetroot %s %s ", esetroot_opt, filename_s); system(esetroot_s); ecore_main_loop_quit(); return; ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs