Skip to content

Commit

Permalink
include capital letters in client_tests parsing of drive-letters
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 28, 2021
1 parent 26f398c commit 6eacc35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/client_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ bool is_absolute_path(std::string const& f)
#if defined(TORRENT_WINDOWS) || defined(TORRENT_OS2)
int i = 0;
// match the xx:\ or xx:/ form
while (f[i] && strchr("abcdefghijklmnopqrstuvxyz", f[i])) ++i;
while (f[i] && strchr("abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ", f[i])) ++i;
if (i < int(f.size()-1) && f[i] == ':' && (f[i+1] == '\\' || f[i+1] == '/'))
return true;

Expand Down

0 comments on commit 6eacc35

Please sign in to comment.