changeset 10934:f6294203286e

Fix off by one error in the what function (bug #30919)
author David Bateman <dbateman@free.fr>
date Tue, 31 Aug 2010 23:27:18 +0200
parents e78e531dfa2d
children 3cb4889dd6f7
files scripts/ChangeLog scripts/miscellaneous/what.m
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,5 +1,7 @@
 2010-07-07  David Bateman  <dbateman@free.fr>
 
+	* miscellaneous/what.m: Off by one error.
+
 	* plot/__go_draw_axes__.m: Improve matlab compatibility for "."
 	marker.
 
--- a/scripts/miscellaneous/what.m
+++ b/scripts/miscellaneous/what.m
@@ -103,7 +103,7 @@
     for i = 1 : nrows
       args  = f(i:nrows:end);
       if (length (args) < ncols)
-        args(end : ncols) = {""};
+        args(end + 1 : ncols) = {""};
       endif
       printf (fmt, args{:});
     endfor