*
* @param obj the evas object - should not be NULL.
* @param fmt The format to populate - should not be NULL.
- * @param[in] cmd the command to proccess
+ * @param[in] cmd the command to proccess, should be stringshared.
* @param[in] param the parameter of the command.
*/
static void
if (n1 == n2)
{
text = eina_ustrbuf_string_get(n1->unicode);
- eina_ustrbuf_append_length(buf, text, cur2->pos - cur1->pos);
+ eina_ustrbuf_append_length(buf, text + cur1->pos, cur2->pos - cur1->pos);
}
else
{
len = eina_ustrbuf_length_get(n1->unicode);
text = eina_ustrbuf_string_get(n1->unicode);
- eina_ustrbuf_append_length(buf, text, len - cur1->pos);
+ eina_ustrbuf_append_length(buf, text + cur1->pos, len - cur1->pos);
- len = eina_ustrbuf_length_get(n2->unicode);
text = eina_ustrbuf_string_get(n2->unicode);
- eina_ustrbuf_append_length(buf, text + cur2->pos, len - cur2->pos);
+ eina_ustrbuf_append_length(buf, text, cur2->pos);
}
/* return the string */