[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 5377709: ; * src/emacs-module.c (module_make_string
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master 5377709: ; * src/emacs-module.c (module_make_string): Add another FIXME |
Date: |
Mon, 26 Jun 2017 05:25:54 -0400 (EDT) |
branch: master
commit 53777093c1d84fd9cbea1cd47df02ac6d2d6049b
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
; * 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 2693a45..9e07202 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));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 5377709: ; * src/emacs-module.c (module_make_string): Add another FIXME,
Philipp Stephani <=