Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/bin
Modified Files:
edje_cc_out.c edje_cc_sources.c edje_decc.c
Log Message:
open files properly
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_out.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- edje_cc_out.c 20 Oct 2004 18:42:36 -0000 1.36
+++ edje_cc_out.c 22 Oct 2004 13:57:48 -0000 1.37
@@ -630,7 +630,7 @@
}
close(fd);
}
- f = fopen(tmpo, "r");
+ f = fopen(tmpo, "rb");
if (f)
{
int size;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_sources.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- edje_cc_sources.c 19 Oct 2004 16:50:09 -0000 1.7
+++ edje_cc_sources.c 22 Oct 2004 13:57:48 -0000 1.8
@@ -62,7 +62,7 @@
FILE *f;
char buf[256 * 1024];
- f = fopen(fil, "r");
+ f = fopen(fil, "rb");
if (!f)
return;
else
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_decc.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- edje_decc.c 13 Oct 2004 19:04:45 -0000 1.4
+++ edje_decc.c 22 Oct 2004 13:57:48 -0000 1.5
@@ -230,7 +230,7 @@
printf("ERROR: potential security violation. attempt to write
in parent dir.\n");
exit (-1);
}
- f = fopen(out, "w");
+ f = fopen(out, "wb");
fwrite(font, fontsize, 1, f);
fclose(f);
free(font);
-------------------------------------------------------
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