diff options
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/fileio.c b/src/fileio.c index 4e0f68af7e..3efddfe66d 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4209,15 +4209,14 @@ void msg_add_lines(int insert_space, long lnum, off_t nchars) if (insert_space) *p++ = ' '; - if (shortmess(SHM_LINES)) - sprintf((char *)p, + if (shortmess(SHM_LINES)) { #ifdef LONG_LONG_OFF_T - "%ldL, %lldC", lnum, nchars + sprintf((char *)p, "%ldL, %lldC", lnum, nchars); #else - /* Explicit typecast avoids warning on Mac OS X 10.6 */ - "%ldL, %ldC", lnum, (long)nchars + /* Explicit typecast avoids warning on Mac OS X 10.6 */ + sprintf((char *)p, "%ldL, %ldC", lnum, (long)nchars); #endif - ); + } else { if (lnum == 1) STRCPY(p, _("1 line, ")); @@ -4226,15 +4225,13 @@ void msg_add_lines(int insert_space, long lnum, off_t nchars) p += STRLEN(p); if (nchars == 1) STRCPY(p, _("1 character")); - else - sprintf((char *)p, + else { #ifdef LONG_LONG_OFF_T - _("%lld characters"), nchars + sprintf((char *)p, _("%lld characters"), nchars); #else - /* Explicit typecast avoids warning on Mac OS X 10.6 */ - _("%ld characters"), (long)nchars + sprintf((char *)p, _("%ld characters"), (long)nchars); #endif - ); + } } } |