1
0
forked from aniani/vim

updated for version 7.0-007

This commit is contained in:
Bram Moolenaar 2006-05-13 11:09:22 +00:00
parent 70fc52750a
commit 223b4313c8
2 changed files with 9 additions and 6 deletions

View File

@ -4175,15 +4175,16 @@ vim_snprintf(str, str_m, fmt, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10)
str_arg_l = 0;
else
{
/* Don't put the #if inside memchr(), it can be a
* macro. */
#if SIZEOF_INT <= 2
char *q = memchr(str_arg, '\0', precision);
#else
/* 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
precision <= (size_t)0x7fffffffL ? precision
: (size_t)0x7fffffffL);
#endif
);
str_arg_l = (q == NULL) ? precision : q - str_arg;
}
break;

View File

@ -666,6 +666,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
7,
/**/
6,
/**/