projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e17e2
)
; * src/emacs-module.c (module_make_string): Add another FIXME
author
Philipp Stephani
<phst@google.com>
Mon, 26 Jun 2017 09:24:25 +0000
(11:24 +0200)
committer
Philipp Stephani
<phst@google.com>
Mon, 26 Jun 2017 09:25:13 +0000
(11:25 +0200)
src/emacs-module.c
patch
|
blob
|
history
diff --git
a/src/emacs-module.c
b/src/emacs-module.c
index 2693a4529d60ee65b04d4f98d3950ed2214af4a3..9e072029cc1a08cb3d97b4b8d665ad0c8a86228a 100644
(file)
--- 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));