Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : proto
Dir : e17/proto/esmart/src/thumb
Modified Files:
E_Thumb.c
Log Message:
normalize paths so we don't generate different thumbnails for
/home/me//me.png
and /home/me/me.png
===================================================================
RCS file: /cvsroot/enlightenment/e17/proto/esmart/src/thumb/E_Thumb.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- E_Thumb.c 17 Oct 2003 20:53:04 -0000 1.8
+++ E_Thumb.c 10 Nov 2003 17:38:29 -0000 1.9
@@ -76,7 +76,8 @@
if ((e = (E_Thumb *) evas_object_smart_data_get (result)))
{
- snprintf (uri, PATH_MAX, "%s", file);
+ if(!(realpath(file, uri)))
+ snprintf (uri, PATH_MAX, "%s", file);
e->file.name = strdup (uri);
snprintf (uri, PATH_MAX, "file://%s", file);
e->uri = strdup (uri);
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs