if(str->unicode && str->ubuffer)
{
int copycount = MIN(len, str->buflen - str->mark);
- g_printerr("Attempting to copy %d units; %d units of space left in buffer\n", len, str->buflen - str->mark);
memmove(str->ubuffer + str->mark, buf, copycount * sizeof(glui32));
str->mark += copycount;
}
{
gchar *latin1 = convert_ucs4_to_latin1_binary(buf, len);
int copycount = MIN(len, str->buflen - str->mark);
- g_printerr("Attempting to copy %d units; %d units of space left in buffer\n", len, str->buflen - str->mark);
memmove(str->buffer + str->mark, latin1, copycount);
g_free(latin1);
str->mark += copycount;