X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Fjson.c;h=63fcbdcb9adf701b96f86161727cc448bf2c5634;hb=7a9abe96a5fa44e06c0e9fd9dc2097d643495063;hp=db10cad1cfdfb4e9426e7c839be1d016d646f2d4;hpb=f638dfd082af857e57f1d3d3fc1b923151fe0c33;p=citadel.git diff --git a/libcitadel/lib/json.c b/libcitadel/lib/json.c index db10cad1c..63fcbdcb9 100644 --- a/libcitadel/lib/json.c +++ b/libcitadel/lib/json.c @@ -80,7 +80,7 @@ JsonValue *NewJsonArray(const char *Key, long keylen) Ret->Type = JSON_ARRAY; if (Key != NULL) Ret->Name = NewStrBufPlain(Key, keylen); - Ret->SubValues = NewHash(1, Flathash); + Ret->SubValues = NewHash(1, lFlathash); return Ret; } @@ -177,7 +177,7 @@ void JsonArrayAppend(JsonValue *Array, JsonValue *Val) return; /* todo assert! */ n = GetCount(Array->SubValues); - Put(Array->SubValues, (const char*) &n, sizeof(n), Val, DeleteJSONValue); + Put(Array->SubValues, LKEY(n), Val, DeleteJSONValue); } void JsonObjectAppend(JsonValue *Array, JsonValue *Val)