aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs-module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emacs-module.c b/src/emacs-module.c
index d56d03203b1..911b82b8a1a 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -637,7 +637,7 @@ module_copy_string_contents (emacs_env *env, emacs_value value, char *buffer,
637 637
638 /* Since we set HANDLE-8-BIT and HANDLE-OVER-UNI to nil, the return 638 /* Since we set HANDLE-8-BIT and HANDLE-OVER-UNI to nil, the return
639 value can be nil, and we have to check for that. */ 639 value can be nil, and we have to check for that. */
640 CHECK_TYPE (!NILP (lisp_str_utf8), Qunicode_string_p, lisp_str_utf8); 640 CHECK_TYPE (!NILP (lisp_str_utf8), Qunicode_string_p, lisp_str);
641 641
642 ptrdiff_t raw_size = SBYTES (lisp_str_utf8); 642 ptrdiff_t raw_size = SBYTES (lisp_str_utf8);
643 ptrdiff_t required_buf_size = raw_size + 1; 643 ptrdiff_t required_buf_size = raw_size + 1;