summaryrefslogtreecommitdiffstats
path: root/stream.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-14 18:34:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-14 18:34:57 -0800
commit19cdd145d345c4560ccc9d841025415e9696b64e (patch)
treed93b2eebb6fd855774667b0e8a361f2f130f653c /stream.c
parentd3aceae6d8c4e37e0d7fb8290a9ae58fc9f7a149 (diff)
downloadtxr-19cdd145d345c4560ccc9d841025415e9696b64e.tar.gz
txr-19cdd145d345c4560ccc9d841025415e9696b64e.tar.bz2
txr-19cdd145d345c4560ccc9d841025415e9696b64e.zip
Provide both char * and unsigned char * interfaces in UTF-8 module.
Fix unsigned and plan char * mixing.
Diffstat (limited to 'stream.c')
-rw-r--r--stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 282a5b94..2ec402bb 100644
--- a/stream.c
+++ b/stream.c
@@ -629,7 +629,7 @@ obj_t *make_string_byte_input_stream(obj_t *string)
{
struct byte_input *bi = (struct byte_input *) chk_malloc(sizeof *bi);
- unsigned char *utf8 = utf8_dup_to(c_str(string));
+ unsigned char *utf8 = utf8_dup_to_uc(c_str(string));
bi->buf = utf8;
bi->size = strlen((char *) utf8);
bi->index = 0;