Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : libs/epsilon
Dir : e17/libs/epsilon/src/lib
Modified Files:
Epsilon.c
Log Message:
Spanky pointed out me being bad.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/epsilon/src/lib/Epsilon.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- Epsilon.c 10 Dec 2003 05:27:43 -0000 1.2
+++ Epsilon.c 18 Dec 2003 03:49:50 -0000 1.3
@@ -4,12 +4,16 @@
#include <png.h>
#include "md5.h"
#include <limits.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include "../config.h"
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
#ifdef HAVE_EPEG_H
#include <Epeg.h>
#endif
@@ -293,12 +297,12 @@
int iw, ih;
char outfile[PATH_MAX];
- if(!e || !e->hash || !e->src) return(EPSILON_FAIL);
#ifdef HAVE_EPEG_H
Epeg_Image *im;
Epeg_Thumbnail_Info info;
int len = 0;
len = strlen(e->src);
+ if(!e || !e->hash || !e->src) return(EPSILON_FAIL);
if((len > 4) &&
(
!strcmp(&e->src[len-3], "jpg") ||
@@ -337,6 +341,8 @@
Imlib_Image src = NULL;
int tw = THUMBNAIL_SIZE, th = THUMBNAIL_SIZE;
+ if(!e || !e->hash || !e->src)
+ return(EPSILON_FAIL);
if(stat(e->src, &filestatus) != 0)
return(EPSILON_FAIL);
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs