aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 14:32:07 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commit3f8061f16c820d32d87f2b608c292ae4d9fb0415 (patch)
treea4dec777982a9659539d3a510c02516cbb2dc0c3 /src/buffer.c
parentc049cb2b5103d1f9c71b9b90a197bf17205867a2 (diff)
downloadrneovim-3f8061f16c820d32d87f2b608c292ae4d9fb0415.tar.gz
rneovim-3f8061f16c820d32d87f2b608c292ae4d9fb0415.tar.bz2
rneovim-3f8061f16c820d32d87f2b608c292ae4d9fb0415.zip
Use portable format specifiers: Case %ld - plain - vim_snprintf.
Fix uses of plain "%ld" within vim_snprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 80502aa0e3..9164664bbf 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4306,8 +4306,8 @@ void write_viminfo_bufferlist(FILE *fp)
break;
putc('%', fp);
home_replace(NULL, buf->b_ffname, line, MAXPATHL, TRUE);
- vim_snprintf_add((char *)line, LINE_BUF_LEN, "\t%ld\t%d",
- (long)buf->b_last_cursor.lnum,
+ vim_snprintf_add((char *)line, LINE_BUF_LEN, "\t%" PRId64 "\t%d",
+ (int64_t)buf->b_last_cursor.lnum,
buf->b_last_cursor.col);
viminfo_writestring(fp, line);
}