From 6c17b4bb866bda37f8b16c702a034ebf26893c8b Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 16 Jan 2021 02:48:38 +0100 Subject: [PATCH] Fixed accounting for zero terminator in long path limitation closes #4259 --- src/NzbDrone.Common/Disk/LongPathSupport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Common/Disk/LongPathSupport.cs b/src/NzbDrone.Common/Disk/LongPathSupport.cs index 81a056ea1..61825168a 100644 --- a/src/NzbDrone.Common/Disk/LongPathSupport.cs +++ b/src/NzbDrone.Common/Disk/LongPathSupport.cs @@ -36,7 +36,7 @@ namespace NzbDrone.Common.Disk } catch { - MAX_PATH = 260; + MAX_PATH = 260 - 1; } } }