json: fix off-by-one in memory alloc
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Nov 2012 12:55:38 +0000 (05:55 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Nov 2012 12:55:38 +0000 (05:55 -0700)
commita57251532f088ef372f317f89695678691e3e095
tree7eeddf9c275fe1e284c87110c7664e26d90da74b
parent24baa4c70c850d4c1703ae8f4e2b35fc5c5a57ea
json: fix off-by-one in memory alloc

Tighten it a bit too, checking for empty string.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
json.c