From ddafdacb0046f5cd95b3023ced4d86073b0039f6 Mon Sep 17 00:00:00 2001 From: Eliseo Martínez Date: Fri, 2 May 2014 21:35:00 +0200 Subject: Use portable format specifiers: Case %lu - localized - EMSGU. Problem EMSGN was being used to print a format string using "%lu", which is incorrect because EMSGN casts its argument to int64_t. Solution Use EMGSU instead. --- src/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory.c b/src/memory.c index 9e527bc513..14eba71a01 100644 --- a/src/memory.c +++ b/src/memory.c @@ -235,7 +235,7 @@ void do_outofmem_msg(long_u size) * message fails, e.g. when setting v:errmsg. */ did_outofmem_msg = TRUE; - EMSGN(_("E342: Out of memory! (allocating %" PRIu64 " bytes)"), size); + EMSGU(_("E342: Out of memory! (allocating %" PRIu64 " bytes)"), size); } } -- cgit