Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
is_ntfs_dotgit: use a size_t for traversing string
[gitweb.git]
/
path.c
diff --git
a/path.c
b/path.c
index 0349a0ab7b8656130df89ef007f5921797cdab3e..9018aa0ac08b4178411f00b6215d17a27d997206 100644
(file)
--- a/
path.c
+++ b/
path.c
@@
-1224,7
+1224,7
@@
static int only_spaces_and_periods(const char *path, size_t len, size_t skip)
int is_ntfs_dotgit(const char *name)
{
-
in
t len;
+
size_
t len;
for (len = 0; ; len++)
if (!name[len] || name[len] == '\\' || is_dir_sep(name[len])) {