Merge pull request #4557 from mikewadsten/bugfix/issue-4537-cscope-segfault

cscope: Fix mismatched types in ':cscope show' output
This commit is contained in:
Justin M. Keyes 2016-04-10 20:56:01 -04:00
commit c56aceff88

View File

@ -2081,12 +2081,13 @@ static int cs_show(exarg_T *eap)
if (csinfo[i].fname == NULL)
continue;
if (csinfo[i].ppath != NULL)
(void)smsg("%2zu %-5" PRId64 " %-34s %-32s",
i, (long)csinfo[i].pid, csinfo[i].fname, csinfo[i].ppath);
else
(void)smsg("%2zu %-5" PRId64 " %-34s <none>",
i, (long)csinfo[i].pid, csinfo[i].fname);
if (csinfo[i].ppath != NULL) {
(void)smsg("%2zu %-5" PRId64 " %-34s %-32s", i,
(int64_t)csinfo[i].pid, csinfo[i].fname, csinfo[i].ppath);
} else {
(void)smsg("%2zu %-5" PRId64 " %-34s <none>", i,
(int64_t)csinfo[i].pid, csinfo[i].fname);
}
}
}