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:17:24 +0000 (15:17 -0700)
commit5aa7f168b1d891cadbf04321d5729a02f5384031
tree74f71ab5989b63f8e2496881268c1b605d77c144
parentc4e119b275208230a636d870b4d87d0f398833a8
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