Mercurial > hg > octave-nkf
diff scripts/optimization/optimset.m @ 13991:051a8f94b6f8
avoid memory issue with octave_vsnprintf
* utils.h, utils.cc (octave_vsnprintf, octave_snprintf):
Return std::string, not char *.
(octave_vformat, octave_format): Return size_t, not int.
(octave_vsnprintf): Simplify implementation with vasprintf.
Include gnulib vasprintf.h from gnulib.
* bootstrap.conf (gnulib_modules): Include vasprintf in the list.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 04 Dec 2011 15:57:58 -0500 |
parents | 519390f1b67f |
children | 72c96de7a403 |