blobmsg_json: simplify add_separator and fix thread-safety
authorMatthias Schiffer <mschiffer@universe-factory.net>
Wed, 6 Apr 2016 15:40:22 +0000 (17:40 +0200)
committerJo-Philipp Wich <jo@mein.io>
Wed, 6 Apr 2016 15:43:47 +0000 (17:43 +0200)
commit155bf39896f126b1ba121b816922a88dc34c31e3
tree90fe058b74d98327ba5f2565bbe7e5b68739ac49
parentdfe446e2a981eaa83cb41df3840ca7c649dc7527
blobmsg_json: simplify add_separator and fix thread-safety

The hard-coded length limits are replaced with strlen to make the code more
robust.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
blobmsg_json.c