diff options
author | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-12-11 21:17:17 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@mysql.com> | 2009-12-11 21:17:17 +0100 |
commit | a6f6932e26f74557f674bc848271ed6a28de5bb6 (patch) | |
tree | 907faecbe376506fb024d3a5c49d8db9a6cb1737 /dbug/dbug.c | |
parent | 3a6b75949c44709fec9841a3b216dec2f46826e1 (diff) | |
parent | 376cf4275f28f6b8167eaf19b2c66dee41fbc5c5 (diff) | |
download | mariadb-git-a6f6932e26f74557f674bc848271ed6a28de5bb6.tar.gz |
merge
Diffstat (limited to 'dbug/dbug.c')
-rw-r--r-- | dbug/dbug.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index 0a0c56170fa..9bcea988b33 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -1355,14 +1355,18 @@ void _db_doprnt_(const char *format,...) } /* + * This function is intended as a * vfprintf clone with consistent, platform independent output for * problematic formats like %p, %zd and %lld. + * However: full functionality for my_vsnprintf has not been backported yet, + * so code using "%g" or "%f" will have undefined behaviour. */ static void DbugVfprintf(FILE *stream, const char* format, va_list args) { char cvtbuf[1024]; size_t len; - len = my_vsnprintf(cvtbuf, sizeof(cvtbuf), format, args); + // Do not use my_vsnprintf, it does not support "%g". + len = vsnprintf(cvtbuf, sizeof(cvtbuf), format, args); (void) fprintf(stream, "%s\n", cvtbuf); } |