; * src/emacs-module.c (module_make_string): Add another FIXME

This commit is contained in:
Philipp Stephani 2017-06-26 11:24:25 +02:00
parent b9e17e2dc6
commit 53777093c1

View file

@ -575,6 +575,8 @@ module_make_string (emacs_env *env, const char *str, ptrdiff_t length)
MODULE_FUNCTION_BEGIN (module_nil);
if (! (0 <= length && length <= STRING_BYTES_BOUND))
xsignal0 (Qoverflow_error);
/* FIXME: AUTO_STRING_WITH_LEN requires STR to be null-terminated,
but we shouldnt require that. */
AUTO_STRING_WITH_LEN (lstr, str, length);
return lisp_to_value (env,
code_convert_string_norecord (lstr, Qutf_8, false));