Skip to content

Commit 6c17b4b

Browse files
committed
Fixed accounting for zero terminator in long path limitation
closes Sonarr#4259
1 parent e704ee6 commit 6c17b4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NzbDrone.Common/Disk/LongPathSupport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private static void DetectLongPathLimits()
3636
}
3737
catch
3838
{
39-
MAX_PATH = 260;
39+
MAX_PATH = 260 - 1;
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)