Enlightenment CVS committal Author : lordchaos Project : e17 Module : proto
Dir : e17/proto/entropy/src Modified Files: entropy_config.c Log Message: * Make the mime dialog larger * Oops - alloc the size for the config dir properly. I'm amazed this worked. God knows what it's been overwriting in mem. =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/entropy/src/entropy_config.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- entropy_config.c 21 Nov 2005 11:50:54 -0000 1.3 +++ entropy_config.c 15 Dec 2005 06:40:24 -0000 1.4 @@ -11,10 +11,12 @@ struct stat config_dir_stat; int i; - i = strlen(entropy_core_home_dir_get() + strlen("/.e/apps/entropy")); + i = strlen(entropy_core_home_dir_get()) + strlen("/.e/apps/entropy") + 2; config->config_dir = entropy_malloc(i * sizeof(char)); snprintf(config->config_dir, i, "%s/%s", entropy_core_home_dir_get(), "/.e/apps/entropy"); + printf("Config dir is: '%s'\n", config->config_dir); + config->config_dir_and_file = entropy_malloc((strlen(config->config_dir) * sizeof(char)) + (13 * sizeof(char))); snprintf(config->config_dir_and_file, strlen(config->config_dir) + 13, "%s/%s", config->config_dir, "entropy.cfg"); ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs