Retain full BitLord build number

This commit is contained in:
Mark Deepwell 2021-04-25 17:02:50 -07:00
parent 7ff6d8cf36
commit d57f575892
No known key found for this signature in database
GPG Key ID: 4C7233BBEAB5B505
2 changed files with 2 additions and 2 deletions

View File

@ -826,7 +826,7 @@ char* tr_clientForId(char* buf, size_t buflen, void const* id_in)
}
else if (strncmp(chid, "-BL", 3) == 0)
{
tr_snprintf(buf, buflen, "BitLord %c.%c.%c-%c%c", id[3], id[4], id[5], id[6], id[7]);
tr_snprintf(buf, buflen, "BitLord %c.%c.%c-%c%c%c", id[3], id[4], id[5], id[6], id[7], id[8]);
}
/* Shad0w-style */

View File

@ -67,7 +67,7 @@ TEST(Client, clientForId)
{ "-BI2300-", "BiglyBT 2.3.0.0" },
{ "A2-1-18-8-", "aria2 1.18.8" },
{ "A2-1-2-0-", "aria2 1.2.0" },
{ "-BL24632", "BitLord 2.4.6-32" },
{ "-BL246326", "BitLord 2.4.6-326" }, // Style used after BitLord 0.59
{ "-WW0007-", "WebTorrent 0.0.0.7" },
{ "-WS1000-", "HTTP Seed" }
};