Enlightenment CVS committal

Author  : titan
Project : e17
Module  : proto

Dir     : e17/proto/ephoto/src/bin


Modified Files:
        ephoto_database.c 


Log Message:
Fix that bugger that seg faulting on remove image!

===================================================================
RCS file: /cvs/e/e17/proto/ephoto/src/bin/ephoto_database.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ephoto_database.c   29 Jan 2007 07:52:38 -0000      1.5
+++ ephoto_database.c   29 Jan 2007 08:38:24 -0000      1.6
@@ -136,7 +136,7 @@
        snprintf(command, PATH_MAX, "SELECT id FROM images WHERE path = '%s';", 
path);
        sqlite3_exec(db, command, get_image_id, 0, 0);
        snprintf(command, PATH_MAX, "DELETE FROM album_images WHERE "
-                                   "image_id = '%s' AND album_id = '%s';", 
image_id, album_id);
+                                   "image_id = '%d' AND album_id = '%d';", 
image_id, album_id);
        sqlite3_exec(db, command, 0, 0, 0);
        return;
 }      



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to