talk_to_socket: split arguments in packet with \0
authorLaurence Withers <lwithers@amethyst.(none)>
Sat, 25 Jul 2009 18:11:40 +0000 (18:11 +0000)
committerLaurence Withers <lwithers@amethyst.(none)>
Sat, 25 Jul 2009 18:11:40 +0000 (18:11 +0000)
commit61b04e00a3627e304d0812dbd8b582a1b5791e9a
tree4ae86a043dccc8dda5e7ef1b543ba5ed44906cbe
parent353472953ada54d5e1b5d235ca472254478d17ad
talk_to_socket: split arguments in packet with \0

In the packet that is written to the daemon via talk_to_socket(), we were
previously using a space to separate each argument, and asking uzbl to quote
the arguments as though for the shell. This just makes life complicated since
we have to undo this in the daemon.

This commit changes the behaviour so that arguments are delimited by ASCII
nul (\0) in the packet. The daemon can thus unambiguously determine where
each argument ends and the next begins.
uzbl.c