X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=ls-files.c;h=df93cf2263e34cba6f0dcb9f63c01cef368434e3;hb=289c4b36e336af5266b86d924ef0aa828e8e4841;hp=a716e5fad2c92122a802ee4e8e25f0bc3248eef4;hpb=756e3ee0c62b44bd700ffb2d58c371b45ea4598e;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; }