Mercurial > octave-nkf
comparison build-aux/bootstrap.conf @ 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 | cb15c5185b6a |
children | f8556baf1949 |
comparison
equal
deleted
inserted
replaced
13990:c9a0e5343cd8 | 13991:051a8f94b6f8 |
---|---|
72 tmpfile | 72 tmpfile |
73 trunc | 73 trunc |
74 truncf | 74 truncf |
75 unistd | 75 unistd |
76 unlink | 76 unlink |
77 vasprintf | |
77 vsnprintf | 78 vsnprintf |
78 " | 79 " |
79 | 80 |
80 # Additional xgettext options to use. Use "\\\newline" to break lines. | 81 # Additional xgettext options to use. Use "\\\newline" to break lines. |
81 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\ | 82 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\ |