]> git.eshelyaron.com Git - emacs.git/commit
emacsclient: fix unlikely crash with "&"
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Nov 2018 18:50:38 +0000 (10:50 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Nov 2018 18:53:30 +0000 (10:53 -0800)
commit7a85a40ef402460eafe3254df4f916369829ea21
tree42c5dcf43f089b8bf55abde224e7a1150a2deaea
parente01d030723aef2f90a2fc53a0b5251f29df94527
emacsclient: fix unlikely crash with "&"

* lib-src/emacsclient.c (quote_argument):
Mention *DATA in comment so it’s clear DATA must be non-null.
(quote_argument, unquote_argument): Simplify.
(unquote_argument): Don’t crash if the string ends in "&".
lib-src/emacsclient.c