aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs-module.c2
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)
575 MODULE_FUNCTION_BEGIN (module_nil); 575 MODULE_FUNCTION_BEGIN (module_nil);
576 if (! (0 <= length && length <= STRING_BYTES_BOUND)) 576 if (! (0 <= length && length <= STRING_BYTES_BOUND))
577 xsignal0 (Qoverflow_error); 577 xsignal0 (Qoverflow_error);
578 /* FIXME: AUTO_STRING_WITH_LEN requires STR to be null-terminated,
579 but we shouldn’t require that. */
578 AUTO_STRING_WITH_LEN (lstr, str, length); 580 AUTO_STRING_WITH_LEN (lstr, str, length);
579 return lisp_to_value (env, 581 return lisp_to_value (env,
580 code_convert_string_norecord (lstr, Qutf_8, false)); 582 code_convert_string_norecord (lstr, Qutf_8, false));