diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-29 15:45:09 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-10-30 17:52:15 +0000 |
commit | e3388b8180e38f79e0d5b66cc640c3d5c37db2a8 (patch) | |
tree | 8e0f1ab276afc8e08f048005be3c0499a8f14db5 /src/cairo-cff-subset.c | |
parent | 3e18114aff21acfa73a7d13a419719375ae9b5a6 (diff) |
[cff-subset] Eliminate shadowed variable.
Cleanup a minor -Wshadow warning.
Diffstat (limited to 'src/cairo-cff-subset.c')
-rw-r--r-- | src/cairo-cff-subset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c index 008cc68a..9a4e3d6a 100644 --- a/src/cairo-cff-subset.c +++ b/src/cairo-cff-subset.c @@ -456,7 +456,7 @@ _cairo_dict_init_key (cff_dict_operator_t *key, int operator) static cairo_status_t cff_dict_create_operator (int operator, unsigned char *operand, - int operand_length, + int size, cff_dict_operator_t **out) { cff_dict_operator_t *op; @@ -466,14 +466,14 @@ cff_dict_create_operator (int operator, return _cairo_error (CAIRO_STATUS_NO_MEMORY); _cairo_dict_init_key (op, operator); - op->operand = malloc (operand_length); + op->operand = malloc (size); if (op->operand == NULL) { free (op); return _cairo_error (CAIRO_STATUS_NO_MEMORY); } - memcpy (op->operand, operand, operand_length); - op->operand_length = operand_length; + memcpy (op->operand, operand, size); + op->operand_length = size; op->operand_offset = -1; *out = op; |