Enlightenment CVS committal
Author : technikolor
Project : web
Module : e
Dir : web/e/pages/linuxworld
Modified Files:
thumb_it thumb_it.c
Log Message:
Yes Nathan...
===================================================================
RCS file: /cvsroot/enlightenment/web/e/pages/linuxworld/thumb_it,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
Binary files /tmp/cvs5ves8B and /tmp/cvsGqOkN3 differ
===================================================================
RCS file: /cvsroot/enlightenment/web/e/pages/linuxworld/thumb_it.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- thumb_it.c 24 Aug 2004 10:30:42 -0000 1.1
+++ thumb_it.c 24 Aug 2004 18:28:45 -0000 1.2
@@ -6,6 +6,7 @@
#include <Epeg.h>
#include <stdio.h>
#include <string.h>
+#include <sys/param.h>
#define THUMB_HEIGHT 120
@@ -20,7 +21,7 @@
}
for(i = 1; i < argc; i++){
- char filename[32];
+ char filename[PATH_MAX];
image = epeg_file_open(argv[i]);
int ratio;
@@ -35,8 +36,7 @@
printf("\n Comment: %s", epeg_comment_get(image) );
}
- strcpy(filename, "tn_");
- strcat(filename, argv[i]);
+ snprintf(filename, sizeof(filename), "tn_%s", argv[i]);
ratio = h / THUMB_HEIGHT;
w = w / ratio;
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs