X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=otherlibs%2F_graphics%2Fsrc%2Flibjasper%2Fjas_icc.c;h=e5a0a2edba3b9bef380b98084ab42f2c40725068;hb=80cd7b93506cc1926882d5fd08a2c74ee9359e29;hp=479d2c9276f03763faaa27037b01709ec1b6944b;hpb=467a270adf12425827305759c0c4ea8f5b2b3854;p=opencv diff --git a/otherlibs/_graphics/src/libjasper/jas_icc.c b/otherlibs/_graphics/src/libjasper/jas_icc.c index 479d2c9..e5a0a2e 100644 --- a/otherlibs/_graphics/src/libjasper/jas_icc.c +++ b/otherlibs/_graphics/src/libjasper/jas_icc.c @@ -7,9 +7,9 @@ * * JasPer License Version 2.0 * + * Copyright (c) 2001-2006 Michael David Adams * Copyright (c) 1999-2000 Image Power, Inc. * Copyright (c) 1999-2000 The University of British Columbia - * Copyright (c) 2001-2003 Michael David Adams * * All rights reserved. * @@ -67,6 +67,7 @@ #include #include #include +#include #include #include @@ -869,7 +870,7 @@ jas_iccattrval_t *jas_iccattrval_clone(jas_iccattrval_t *attrval) void jas_iccattrval_destroy(jas_iccattrval_t *attrval) { #if 0 -fprintf(stderr, "refcnt=%d\n", attrval->refcnt); +jas_eprintf("refcnt=%d\n", attrval->refcnt); #endif if (--attrval->refcnt <= 0) { if (attrval->ops->destroy) @@ -1188,7 +1189,7 @@ static int jas_icctxt_copy(jas_iccattrval_t *attrval, { jas_icctxt_t *txt = &attrval->data.txt; jas_icctxt_t *othtxt = &othattrval->data.txt; - if (!(txt->string = strdup(othtxt->string))) + if (!(txt->string = jas_strdup(othtxt->string))) return -1; return 0; }