mirror of
https://github.com/LBPUnion/UnionPatcher.git
synced 2025-08-03 14:48:53 +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) {
|
foreach(Match urlMatch in urls) {
|
||||||
string url = urlMatch.Value;
|
string url = urlMatch.Value;
|
||||||
|
|
||||||
if(serverUrl.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}");
|
throw new ArgumentOutOfRangeException(nameof(serverUrl), $"Server URL ({serverUrl.Length} characters long) is above maximum length {url.Length - 1}");
|
||||||
}
|
}
|
||||||
int offset = urlMatch.Index;
|
int offset = urlMatch.Index;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue