diff options
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index d25d48501..481236b96 100644 --- a/src/message.c +++ b/src/message.c @@ -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; |