Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : libs/edje
Dir : e17/libs/edje/src/bin Modified Files: edje_cc_sources.c Log Message: don't overwrite source file data with the terminating NUL =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_sources.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- edje_cc_sources.c 22 Oct 2004 13:57:48 -0000 1.8 +++ edje_cc_sources.c 25 Oct 2004 17:47:16 -0000 1.9 @@ -75,9 +75,9 @@ fseek(f, 0, SEEK_SET); sf = mem_alloc(SZ(SrcFile)); sf->name = mem_strdup(filname); - sf->file = mem_alloc(sz); + sf->file = mem_alloc(sz + 1); fread(sf->file, sz, 1, f); - sf->file[sz - 1] = '\0'; + sf->file[sz] = '\0'; fseek(f, 0, SEEK_SET); srcfiles.list = evas_list_append(srcfiles.list, sf); } ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs