Commit 373a676f authored by Christophe Massiot's avatar Christophe Massiot

* modules/control/http.c: Fixed bugs in str_replace().

parent fab9512e
......@@ -3333,12 +3333,14 @@ static void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
while( (p = strstr( psz_in_current, psz_from )) != NULL )
{
memcpy( psz_out_current, psz_in, p - psz_in_current );
memcpy( psz_out_current, psz_in_current, p - psz_in_current );
psz_out_current += p - psz_in_current;
memcpy( psz_out_current, psz_to, strlen(psz_to) );
psz_out_current += strlen(psz_out);
psz_in_current = p + strlen(psz_from);
}
memcpy( psz_out_current, psz_in_current, strlen(psz_in_current) );
psz_out_current += strlen(psz_in_current);
*psz_out_current = '\0';
SSPush( st, psz_out );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment