On Wed, Apr 9, 2008 at 5:30 PM, Bram Moolenaar <[EMAIL PROTECTED]> wrote: > Easy to reproduce. Turns out that this line causes it: > > sprintf(tmp, format, f); > > Here "format" is "%f" and "f" is your value 1e+308. The result is an > awful long string of numbers. I suppose it's about 308 digits. How big > does "tmp" need to be to hold any result here? I don't think %f has a > way of specifying a maximal field width.
You could use snprintf() to specify the maximum length of tmp. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---