From 53777093c1d84fd9cbea1cd47df02ac6d2d6049b Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Mon, 26 Jun 2017 11:24:25 +0200 Subject: [PATCH] ; * src/emacs-module.c (module_make_string): Add another FIXME --- src/emacs-module.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.39.2