changeset 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 70387b464c80 (current diff) ecd4b048f98c (diff)
children 3f21c0c34b8f
files liboctave/regexp.cc scripts/general/logspace.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/regexp.cc	Wed Mar 28 09:08:27 2012 -0700
+++ b/liboctave/regexp.cc	Wed Mar 28 12:59:46 2012 -0400
@@ -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);