json: Fix error message for corner case in json_string_unescape().
authorBen Pfaff <blp@nicira.com>
Wed, 25 Feb 2015 16:46:02 +0000 (08:46 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 29 May 2015 22:19:00 +0000 (15:19 -0700)
commit33cd56ae7b1b91eb51787bdbf6cf5326243742e7
tree9d78f732f2047b5c4b73f52a3196f9d86821b9cc
parent46952e589408169065c778c34eda16f518a0a2c5
json: Fix error message for corner case in json_string_unescape().

The error message should not include bytes already copied from the input
string.

Found by inspection.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
lib/json.c
tests/ovsdb-data.at