mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
bugfix
This commit is contained in:
parent
8ef3cb7e61
commit
6c91607d9b
1 changed files with 5 additions and 2 deletions
|
@ -1520,8 +1520,11 @@ object Cyc_utf82string(void *data, object cont, object bv, object start, object
|
|||
|
||||
len = e - s;
|
||||
{
|
||||
make_string_with_len(str, &(((bytevector)bv)->data)[s], len);
|
||||
return_closcall1(data, cont, &str);
|
||||
make_string_noalloc(st, NULL, len);
|
||||
st.str = alloca(sizeof(char) * (len + 1));
|
||||
memcpy(st.str, &buf[s], len);
|
||||
st.str[len] = '\0';
|
||||
return_closcall1(data, cont, &st);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue