0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.0c

This commit is contained in:
Bram Moolenaar
2006-03-27 17:01:56 +00:00
parent 899dddf888
commit 3991dab8e0
181 changed files with 489 additions and 265 deletions

View File

@@ -4167,8 +4167,13 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
{
/* memchr on HP does not like n > 2^31 !!! */
char *q = memchr(str_arg, '\0',
#if SIZEOF_INT <= 2
precision
#else
precision <= (size_t)0x7fffffffL ? precision
: (size_t)0x7fffffffL);
: (size_t)0x7fffffffL
#endif
);
str_arg_l = (q == NULL) ? precision : q - str_arg;
}
break;