]> git.eshelyaron.com Git - emacs.git/commit
Convert NUL-containing NSString objects to Lisp strings correctly
authorMattias Engdegård <mattiase@acm.org>
Tue, 18 Jul 2023 13:42:55 +0000 (15:42 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 18 Jul 2023 13:51:37 +0000 (15:51 +0200)
commitf063f79a4933f21dc72c6a24b60f98197543d3de
tree0ef4f44c9354129285920608b3bb41ca53dec71a
parentd172cd59854699c00de3b57a91e48ff70a4210f8
Convert NUL-containing NSString objects to Lisp strings correctly

This cures the inability to paste text containing NUL from other
applications on macOS, introduced by mistake in 7e3c2b553f
(bug#64697).

* src/nsfns.m ([NSString lispString]): Use make_string instead of
build_string which relies on NUL-termination.
src/nsfns.m