mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-04-23 21:15:18 +00:00
Leave a NULL character of padding
This commit is contained in:
parent
09744e826b
commit
4b6165ab8d
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ public static class Patcher {
|
|||
foreach(Match urlMatch in urls) {
|
||||
string url = urlMatch.Value;
|
||||
|
||||
if(serverUrl.Length > url.Length) {
|
||||
throw new ArgumentOutOfRangeException(nameof(serverUrl), $"Server URL ({serverUrl.Length} characters long) is above maximum length {url.Length}");
|
||||
if(serverUrl.Length > url.Length - 1) {
|
||||
throw new ArgumentOutOfRangeException(nameof(serverUrl), $"Server URL ({serverUrl.Length} characters long) is above maximum length {url.Length - 1}");
|
||||
}
|
||||
int offset = urlMatch.Index;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue