Navigation Menu

Skip to content

Commit

Permalink
[msgpack] fix array size of VECTOR output
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Aug 9, 2012
1 parent c7bffcb commit 8f19aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/output.c
Expand Up @@ -901,7 +901,7 @@ grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
grn_obj value;
GRN_VOID_INIT(&value);
n = grn_vector_size(ctx, obj);
grn_output_array_open(ctx, outbuf, output_type, "VECTOR", -1);
grn_output_array_open(ctx, outbuf, output_type, "VECTOR", n);
for (i = 0; i < n; i++) {
const char *_value;
unsigned int weight, length;
Expand Down

0 comments on commit 8f19aa0

Please sign in to comment.