diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-02-08 17:36:48 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-02-08 17:36:48 +0000 |
commit | 5cd0e70d89ced0bf6052515b078696ec9034ed3c (patch) | |
tree | 80746145b9d8cd7666bb98ef4c2163b79158c364 /src/vasprintf.c | |
parent | a7670340b3ccf75bd60c3e77df6b866ed801deb3 (diff) | |
download | mpfr-5cd0e70d89ced0bf6052515b078696ec9034ed3c.tar.gz |
[src/vasprintf.c] Updated FIXME.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11294 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/vasprintf.c')
-rw-r--r-- | src/vasprintf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vasprintf.c b/src/vasprintf.c index e1ce2696c..652a5b1fa 100644 --- a/src/vasprintf.c +++ b/src/vasprintf.c @@ -24,8 +24,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* FIXME: There are inconsistencies between size types used here: sometimes size_t, sometimes int, while size_t < unsigned int and unsigned int < size_t are both possible. Since the *printf functions - return an int for the size, always use an int (checking overflow can - be done with unsigned int)? */ + return an int for the size, always use an int, and unsigned int if + one needs to take the ending \0 into account (checking overflow can + be done with unsigned int too)? */ #ifdef HAVE_CONFIG_H # include "config.h" @@ -2160,7 +2161,7 @@ mpfr_vasnprintf_aux (char **ptr, char *Buf, size_t size, const char *fmt, (char *) (*__gmp_reallocate_func) (buf.start, buf.size, nbchar + 1); buf.size = nbchar + 1; /* update needed for __gmp_free_func below when nbchar is too large (overflow_error) */ - + /* below we implement mpfr_vasprintf */ *ptr = buf.start; |