Browse Source

tiny commit to check pulling

pull/590/head
brain5lug 8 years ago
parent
commit
8f58886a21
  1. 2
      SOCKS.cpp

2
SOCKS.cpp

@ -26,7 +26,7 @@ namespace proxy
{ {
uint8_t size; uint8_t size;
char value[max_socks_hostname_size]; char value[max_socks_hostname_size];
void FromString (std::string str) void FromString (const std::string& str)
{ {
size = str.length(); size = str.length();
if (str.length() > max_socks_hostname_size) size = max_socks_hostname_size; if (str.length() > max_socks_hostname_size) size = max_socks_hostname_size;

Loading…
Cancel
Save