Browse Source

extract last parameter

pull/102/head
orignal 10 years ago
parent
commit
39bd641b39
  1. 7
      SAM.cpp

7
SAM.cpp

@ -359,9 +359,11 @@ namespace stream @@ -359,9 +359,11 @@ namespace stream
void SAMSocket::ExtractParams (char * buf, size_t len, std::map<std::string, std::string>& params)
{
while (char * separator = strchr (buf, ' '))
char * separator;
do
{
*separator = 0;
separator = strchr (buf, ' ');
if (separator) *separator = 0;
char * value = strchr (buf, '=');
if (value)
{
@ -371,6 +373,7 @@ namespace stream @@ -371,6 +373,7 @@ namespace stream
}
buf = separator + 1;
}
while (separator);
}
void SAMSocket::Receive ()

Loading…
Cancel
Save