aboutsummaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-19 19:58:56 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commite4a1ea9e0282bd3cf32c095a9519171de132c559 (patch)
tree0b07a2e237fa1e6085e01d4ab9ac7ce9b4efaec3 /src/fileio.c
parent7dc649c9064062130db8a3d22a9a91b155a08ec5 (diff)
downloadrneovim-e4a1ea9e0282bd3cf32c095a9519171de132c559.tar.gz
rneovim-e4a1ea9e0282bd3cf32c095a9519171de132c559.tar.bz2
rneovim-e4a1ea9e0282bd3cf32c095a9519171de132c559.zip
Use portable format specifiers: Case %lld - localized - sprintf.
Fix uses of localized "%lld" within sprintf(): - Replace _("%lld") with _("%" PRId64). - Cast corresponding argument to (int64_t). - In *.po files, replace "%lld" with "%<PRId64>".
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index e64682b903..a9d30f83db 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4164,7 +4164,7 @@ void msg_add_lines(int insert_space, long lnum, off_t nchars)
STRCPY(p, _("1 character"));
else {
#ifdef LONG_LONG_OFF_T
- sprintf((char *)p, _("%lld characters"), nchars);
+ sprintf((char *)p, _("%" PRId64 " characters"), nchars);
#else
sprintf((char *)p, _("%ld characters"), (long)nchars);
#endif