Mercurial > octave
changeset 21642:da9c75ffd1a3
Replace deprecated call to length () of a string_vector (bug #47773).
* lo-sysdep.cc (octave_popen2): Change length to numel.
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Sun, 24 Apr 2016 23:15:57 +1000 |
parents | 6459479840ba |
children | 7bdfa98a98a3 |
files | liboctave/system/lo-sysdep.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/system/lo-sysdep.cc Thu Apr 21 20:19:47 2016 -0700 +++ b/liboctave/system/lo-sysdep.cc Sun Apr 24 23:15:57 2016 +1000 @@ -127,7 +127,7 @@ si.hStdOutput = childWrite; // Ignore first arg as it is the command - for (int k=1; k<args.length (); k++) + for (int k=1; k<args.numel (); k++) command += " \"" + args[k] + "\""; OCTAVE_LOCAL_BUFFER (char, c_command, command.length () + 1); strcpy (c_command, command.c_str ());