diff --git a/builtin-update-index.c b/builtin-update-index.c
index dd43d5bef425af318a884bfc235a4aff40931633..1fde893cfa9f6318ae1e9958b2f61159b01c7c6a 100644 (file)
--- a/builtin-update-index.c
+++ b/builtin-update-index.c
struct stat st;
len = strlen(path);
- if (has_symlink_leading_path(len, path))
+ if (has_symlink_leading_path(path, len))
return error("'%s' is beyond a symbolic link", path);
/*