diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2009-08-25 03:05:10 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2009-08-25 03:05:10 +0000 |
commit | 0cac724924ae8aadf9e12dd2aedc3eb0bf8de901 (patch) | |
tree | 1910a147296d1c2e6c6f1650227f205b50aa4f86 /test_json.c | |
parent | 9126c2d2b1c1283bdf8b48c608ede572859fb5e4 (diff) | |
download | gpsd-0cac724924ae8aadf9e12dd2aedc3eb0bf8de901.tar.gz |
Change the way JSON parse templates are declared...
so that string lengths won't step on offsets.
Diffstat (limited to 'test_json.c')
-rw-r--r-- | test_json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test_json.c b/test_json.c index ef92dca0..a71625e1 100644 --- a/test_json.c +++ b/test_json.c @@ -144,7 +144,7 @@ static int dumbcount; static const struct json_attr_t json_attrs_6_subtype[] = { {"name", string, .addr.offset = offsetof(struct dumbstruct_t, name), - .addr.string.len = 64}, + .len = 64}, {"flag", boolean, .addr.offset = offsetof(struct dumbstruct_t, flag),}, {"count", integer, .addr.offset = offsetof(struct dumbstruct_t, count),}, {NULL}, |