diff options
| author | Philipp Stephani | 2017-06-26 11:24:25 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-06-26 11:25:13 +0200 |
| commit | 53777093c1d84fd9cbea1cd47df02ac6d2d6049b (patch) | |
| tree | 4e9025f1ffee6977cabb6b0e5f26bcfe64c8bb14 /src | |
| parent | b9e17e2dc6ed81a32b3baca5d49dbde362477dbe (diff) | |
| download | emacs-53777093c1d84fd9cbea1cd47df02ac6d2d6049b.tar.gz emacs-53777093c1d84fd9cbea1cd47df02ac6d2d6049b.zip | |
; * src/emacs-module.c (module_make_string): Add another FIXME
Diffstat (limited to 'src')
| -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) | |||
| 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)); |