Enlightenment CVS committal

Author  : handyande
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_desk.c 


Log Message:
a (not so) paranoid check
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_desk.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- e_desk.c    13 Jan 2005 14:24:24 -0000      1.14
+++ e_desk.c    20 Jan 2005 10:42:09 -0000      1.15
@@ -132,6 +132,9 @@
 {
    E_OBJECT_CHECK_RETURN(zone, NULL);
 
+   if (x >= zone->desk_x_count || y >= zone->desk_y_count)
+     return NULL;
+
    return (E_Desk *) zone->desks[x + (y * zone->desk_x_count)];
 }
 




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to