diff --git a/ls-files.c b/ls-files.c
index 52bbfdc805aecaa9c463adbb4ef94d1af9c8511f..90b289f03d987c6c90214fc12d00c30b4e28bb27 100644 (file)
--- a/ls-files.c
+++ b/ls-files.c
if (ps_matched[num])
continue;
error("pathspec '%s' did not match any.",
- pathspec[num] + prefix_len);
+ pathspec[num] + prefix_offset);
+ errors++;
}
return errors ? 1 : 0;
}