This commit is contained in:
Justin Ethier 2017-09-05 12:53:13 +00:00
parent 8ec41e34bf
commit 27336b4047
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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));