Revision: 2334 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2334&view=re... Author: frlan Date: 2011-11-12 13:13:37 +0000 (Sat, 12 Nov 2011) Log Message: ----------- GeanyVC: Some minor input validation to ensure we don't set to negativ line numbers
Modified Paths: -------------- trunk/geany-plugins/geanyvc/src/geanyvc.c
Modified: trunk/geany-plugins/geanyvc/src/geanyvc.c =================================================================== --- trunk/geany-plugins/geanyvc/src/geanyvc.c 2011-11-12 13:12:24 UTC (rev 2333) +++ trunk/geany-plugins/geanyvc/src/geanyvc.c 2011-11-12 13:13:37 UTC (rev 2334) @@ -392,6 +392,8 @@ /* To due the given line is Scintilla's line number, but * we need the view line number in this case. */ line = line + 1; + if (line < 1) + line = 1; } else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org