Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 154380
Collapse All | Expand All

(-)libpng-1.2.12.orig/pngset.c (-2 / +2 lines)
Lines 976-985 png_set_sPLT(png_structp png_ptr, Link Here
976
        /* TODO: use png_malloc_warn */
976
        /* TODO: use png_malloc_warn */
977
        png_strcpy(to->name, from->name);
977
        png_strcpy(to->name, from->name);
978
        to->entries = (png_sPLT_entryp)png_malloc(png_ptr,
978
        to->entries = (png_sPLT_entryp)png_malloc(png_ptr,
979
            from->nentries * png_sizeof(png_sPLT_t));
979
            from->nentries * png_sizeof(png_sPLT_entry));
980
        /* TODO: use png_malloc_warn */
980
        /* TODO: use png_malloc_warn */
981
        png_memcpy(to->entries, from->entries,
981
        png_memcpy(to->entries, from->entries,
982
            from->nentries * png_sizeof(png_sPLT_t));
982
            from->nentries * png_sizeof(png_sPLT_entry));
983
        to->nentries = from->nentries;
983
        to->nentries = from->nentries;
984
        to->depth = from->depth;
984
        to->depth = from->depth;
985
    }
985
    }

Return to bug 154380