++it)
{
std::string parameter;
- if (it->c_str() == "tariffName")
+ if (*it == "tariffName")
parameter = rsu.user->GetParamValue("tariff");
- else
- parameter = rsu.user->GetParamValue(it->c_str());
+ else
+ parameter = rsu.user->GetParamValue(*it);
if (params.length() + parameter.length() > RS_PARAMS_LEN - 1)
+ {
+ logger("Script params string length %i exceeds the limit of %i symbols.", params.length() + parameter.length(), RS_PARAMS_LEN);
break;
+ }
params += parameter + " ";
}
strncpy((char *)packetTail.params, params.c_str(), RS_PARAMS_LEN);