• R/O
  • HTTP
  • SSH
  • HTTPS

lha: Commit


Commit MetaInfo

Revision43dede07225c49b979aaf49d01840863e1f1cb86 (tree)
Time2016-10-14 18:09:17
AuthorYohei Endo <yoheie@gmai...>
CommiterYohei Endo

Log Message

Fix path check

Change Summary

Incremental Difference

--- a/src/lharc.c
+++ b/src/lharc.c
@@ -1003,7 +1003,7 @@ include_path_p(path, name)
10031003 char *n = name;
10041004 while (*path)
10051005 if (*path++ != *n++)
1006- return (path[-1] == '/' && *n == '\0');
1006+ return (path[-1] == '/' && n[-1] == '\0');
10071007 return (*n == '/' || (n != name && path[-1] == '/' && n[-1] == '/'));
10081008 }
10091009
Show on old repository browser