changeset 20256:1b4bef838aaf stable

textscan.m: adapt format repeat counter when reading from file before invoking strread.m (bug #45047)
author Philip Nienhuis <prnienhuis@users.sf.net>
date Sun, 24 May 2015 23:06:31 +0200
parents 481fa65e5cab
children 8a25649b9c77
files scripts/io/textscan.m
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/io/textscan.m	Sun May 24 22:47:55 2015 +0200
+++ b/scripts/io/textscan.m	Sun May 24 23:06:31 2015 +0200
@@ -292,6 +292,7 @@
       endif
       fseek (fid, st_pos, "bof");
       str = fscanf (fid, "%c", data_size);
+      args{1} = Inf;
     else
       fseek (fid, st_pos, "bof");
       str = fread (fid, "char=>char").';