projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Frotz now compiled to use Gargoyle extensions
[projects/chimara/chimara.git]
/
libchimara
/
strio.c
diff --git
a/libchimara/strio.c
b/libchimara/strio.c
index bac31537c231a69fb4749df5afc54400118e1aac..f668cb9484637431ad849f62246b0365cadc5c79 100644
(file)
--- a/
libchimara/strio.c
+++ b/
libchimara/strio.c
@@
-258,6
+258,7
@@
write_buffer_to_stream_uni(strid_t str, glui32 *buf, glui32 len)
if(str->unicode && str->ubuffer)
{
int copycount = MIN(len, str->buflen - str->mark);
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;
}
memmove(str->ubuffer + str->mark, buf, copycount * sizeof(glui32));
str->mark += copycount;
}
@@
-265,6
+266,7
@@
write_buffer_to_stream_uni(strid_t str, glui32 *buf, glui32 len)
{
gchar *latin1 = convert_ucs4_to_latin1_binary(buf, len);
int copycount = MIN(len, str->buflen - str->mark);
{
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;
memmove(str->buffer + str->mark, latin1, copycount);
g_free(latin1);
str->mark += copycount;