Skip to content

Commit

Permalink
(trunk, libT) allocate in jsonsl, allocate jpr_root using the correct…
Browse files Browse the repository at this point in the history
… integral type. upstream xref: mnunberg/jsonsl#6

git-svn-id: svn://svn.transmissionbt.com/Transmission/trunk@14216 f4695dd4-2c0a-0410-b89c-da849a56a58e
  • Loading branch information
jordan committed Dec 16, 2013
1 parent 6692ea6 commit 58f77be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libtransmission/jsonsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ void jsonsl_jpr_match_state_init(jsonsl_t jsn,
}
jsn->jprs = malloc(sizeof(jsonsl_jpr_t) * njprs);
jsn->jpr_count = njprs;
jsn->jpr_root = calloc(1, sizeof(int) * njprs * jsn->levels_max);
jsn->jpr_root = calloc(1, sizeof(size_t) * njprs * jsn->levels_max);
memcpy(jsn->jprs, jprs, sizeof(jsonsl_jpr_t) * njprs);
/* Set the initial jump table values */

Expand Down

0 comments on commit 58f77be

Please sign in to comment.