aboutsummaryrefslogtreecommitdiff
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-19 12:28:26 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commitfb94edf373418362b803e60bed67525bd5720916 (patch)
treec85dc6180294d90005e21d096ab737e9f65bd6bd /src/ex_cmds.c
parentf916cf067d42d1dfd8ed477fdd5e3f0bda665eee (diff)
downloadrneovim-fb94edf373418362b803e60bed67525bd5720916.tar.gz
rneovim-fb94edf373418362b803e60bed67525bd5720916.tar.bz2
rneovim-fb94edf373418362b803e60bed67525bd5720916.zip
Use portable format specifiers: Case %ld - plain - sprintf.
Fix uses of plain "%ld" within sprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index b56b9f8867..a726ca1a79 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -6112,7 +6112,8 @@ void ex_sign(exarg_T *eap)
cmd = alloc((unsigned)STRLEN(buf->b_fname) + 25);
if (cmd == NULL)
return;
- sprintf((char *)cmd, "e +%ld %s", (long)lnum, buf->b_fname);
+ sprintf((char *)cmd, "e +%" PRId64 " %s",
+ (int64_t)lnum, buf->b_fname);
do_cmdline_cmd(cmd);
vim_free(cmd);
}