diff options
author | Joey Hess <joey@kitenet.net> | 2013-10-16 12:14:14 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2013-10-16 12:14:14 -0400 |
commit | 9acfdd923967c31b9e3a8d5793f721f3bf1e9acd (patch) | |
tree | 64a3d90dc46c5b6dd96a23d4760624c9ac87c5f3 /Git | |
parent | 87b1c91d6873ab009a254230a7f560a76f08436f (diff) |
fix off-by-one
Diffstat (limited to 'Git')
-rw-r--r-- | Git/CheckAttr.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Git/CheckAttr.hs b/Git/CheckAttr.hs index 40259881a..94ead5b4c 100644 --- a/Git/CheckAttr.hs +++ b/Git/CheckAttr.hs @@ -59,7 +59,7 @@ checkAttr (h, attrs, cwd) want file = do | '\0' `elem` s = if "\0" `isSuffixOf` s then let bits = segment (== '\0') s - in if length bits == numattrs * 3 + in if length bits == (numattrs * 3) + 1 then Just $ getattrvalues bits [] else Nothing -- more attributes to come else Nothing -- output incomplete |