SF.net SVN: geany: [795] trunk/src/sciwrappers.c

eht16 at users.sourceforge.net eht16 at xxxxx
Wed Sep 6 17:47:05 UTC 2006


Revision: 795
          http://svn.sourceforge.net/geany/?rev=795&view=rev
Author:   eht16
Date:     2006-09-06 10:47:00 -0700 (Wed, 06 Sep 2006)

Log Message:
-----------
Added sanity check.

Modified Paths:
--------------
    trunk/src/sciwrappers.c

Modified: trunk/src/sciwrappers.c
===================================================================
--- trunk/src/sciwrappers.c	2006-09-06 17:31:53 UTC (rev 794)
+++ trunk/src/sciwrappers.c	2006-09-06 17:47:00 UTC (rev 795)
@@ -832,6 +832,8 @@
 
 void sci_set_styling(ScintillaObject *sci, gint len, gint style)
 {
+	if (len < 0 || style < 0) return;
+
 	SSM(sci, SCI_SETSTYLING, len, style);
 }
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list