mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
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).
This commit is contained in:

committed by
Thiago de Arruda

parent
f916cf067d
commit
fb94edf373
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user