Changeset 14216


Ignore:
Timestamp:
Dec 16, 2013, 4:32:55 PM (7 years ago)
Author:
jordan
Message:

(trunk, libT) allocate in jsonsl, allocate jpr_root using the correct integral type. upstream xref: https://github.com/mnunberg/jsonsl/issues/6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/jsonsl.c

    r14171 r14216  
    870870    jsn->jprs = malloc(sizeof(jsonsl_jpr_t) * njprs);
    871871    jsn->jpr_count = njprs;
    872     jsn->jpr_root = calloc(1, sizeof(int) * njprs * jsn->levels_max);
     872    jsn->jpr_root = calloc(1, sizeof(size_t) * njprs * jsn->levels_max);
    873873    memcpy(jsn->jprs, jprs, sizeof(jsonsl_jpr_t) * njprs);
    874874    /* Set the initial jump table values */
Note: See TracChangeset for help on using the changeset viewer.