Mercurial > vim
changeset 1783:c3242ae88ef1 v7.2.081
updated for version 7.2-081
author | vimboss |
---|---|
date | Tue, 13 Jan 2009 15:38:37 +0000 |
parents | 12cecc379574 |
children | be7491f23e9d |
files | src/message.c src/version.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/message.c +++ b/src/message.c @@ -4556,7 +4556,13 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3 remove_trailing_zeroes = TRUE; } - if (fmt_spec == 'f' && abs_f > 1.0e307) + if (fmt_spec == 'f' && +#ifdef VAX + abs_f > 1.0e38 +#else + abs_f > 1.0e307 +#endif + ) { /* Avoid a buffer overflow */ strcpy(tmp, "inf");