diff options
-rw-r--r-- | src/emacs-module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c index 2693a4529d6..9e072029cc1 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c @@ -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 shouldn’t require that. */ AUTO_STRING_WITH_LEN (lstr, str, length); return lisp_to_value (env, code_convert_string_norecord (lstr, Qutf_8, false)); |