X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=ls-files.c;h=df93cf2263e34cba6f0dcb9f63c01cef368434e3;hb=b992933853ccffac85f7e40310167ef7b8f0432e;hp=a716e5fad2c92122a802ee4e8e25f0bc3248eef4;hpb=e8a1a11d4e0036a4205dbed533c135b51cd87218;p=git.git diff --git a/ls-files.c b/ls-files.c index a716e5fa..df93cf22 100644 --- a/ls-files.c +++ b/ls-files.c @@ -757,7 +757,7 @@ int main(int argc, const char **argv) if (ps_matched[num]) continue; error("pathspec '%s' did not match any.", - pathspec[num] + prefix_len); + pathspec[num] + prefix_offset); } return errors ? 1 : 0; }