diff liboctave/regexp.cc @ 14506:6cc30975e262

maint: periodic merge of stable to default
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 28 Mar 2012 12:59:46 -0400
parents c57f9c911053 b472596cd7b9
children 6d5c951ec520
line wrap: on
line diff
--- a/liboctave/regexp.cc
+++ b/liboctave/regexp.cc
@@ -148,7 +148,7 @@
           size_t tmp_pos1 = new_pos + 2;
           size_t tmp_pos2 = tmp_pos1;
 
-          while (tmp_pos1 <= pattern.length () && brackets > 0)
+          while (tmp_pos1 < pattern.length () && brackets > 0)
             {
               char ch = pattern.at (tmp_pos1);