aboutsummaryrefslogtreecommitdiff
path: root/src/if_cscope.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_cscope.c')
-rw-r--r--src/if_cscope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index bcbd8da40d..c2a1b34c80 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -2231,7 +2231,7 @@ static char *cs_resolve_file(int i, char *name)
csdir = alloc(MAXPATHL);
if (csdir != NULL) {
vim_strncpy(csdir, (char_u *)csinfo[i].fname,
- gettail((char_u *)csinfo[i].fname)
+ path_tail((char_u *)csinfo[i].fname)
- (char_u *)csinfo[i].fname);
len += (int)STRLEN(csdir);
}