mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Issue #219
This commit is contained in:
parent
8ec41e34bf
commit
27336b4047
2 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ Features
|
|||
Bug Fixes
|
||||
|
||||
- Fix `read-line` to remove trailing carriage return and/or newline characters. Thanks to wasamasa for the bug report!
|
||||
- String ports created by `open-input-string` returned an extra garbage byte. This has been fixed by a patch from wasamasa.
|
||||
- Added a fix from wasamasa to escape double quotation marks in strings when output via `write`.
|
||||
|
||||
## 0.6.2 - August 25, 2017
|
||||
|
|
|
@ -45,7 +45,7 @@ port_type *Cyc_io_open_input_string(void *data, object str)
|
|||
p->str_bv_in_mem_buf = malloc(sizeof(char) * (string_len(str) + 1));
|
||||
p->str_bv_in_mem_buf_len = string_len(str);
|
||||
memcpy(p->str_bv_in_mem_buf, string_str(str), string_len(str));
|
||||
p->fp = fmemopen(p->str_bv_in_mem_buf, string_len(str) + 1, "r");
|
||||
p->fp = fmemopen(p->str_bv_in_mem_buf, string_len(str), "r");
|
||||
#endif
|
||||
if (p->fp == NULL){
|
||||
Cyc_rt_raise2(data, "Unable to open input memory stream", obj_int2obj(errno));
|
||||
|
|
Loading…
Add table
Reference in a new issue