summaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mark.c b/src/mark.c
index 2669cb14c..f8b4c576f 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -1750,7 +1750,10 @@ copy_viminfo_marks(virp, fp_out, count, eof, flags)
{
if (line[1] != NUL)
{
- sscanf((char *)line + 2, "%ld %u", &pos.lnum, &pos.col);
+ unsigned u;
+
+ sscanf((char *)line + 2, "%ld %u", &pos.lnum, &u);
+ pos.col = u;
switch (line[1])
{
case '"': curbuf->b_last_cursor = pos; break;