summaryrefslogtreecommitdiff
path: root/test_json.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-08-25 03:05:10 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-08-25 03:05:10 +0000
commit0cac724924ae8aadf9e12dd2aedc3eb0bf8de901 (patch)
tree1910a147296d1c2e6c6f1650227f205b50aa4f86 /test_json.c
parent9126c2d2b1c1283bdf8b48c608ede572859fb5e4 (diff)
downloadgpsd-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.c2
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},