Skip to content

Commit

Permalink
fix spng_get_splt()
Browse files Browse the repository at this point in the history
  • Loading branch information
randy408 committed Apr 28, 2021
1 parent 9f79ea0 commit 5176386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spng/spng.c
Original file line number Diff line number Diff line change
Expand Up @@ -3770,7 +3770,7 @@ int spng_get_splt(spng_ctx *ctx, struct spng_splt *splt, uint32_t *n_splt)

if(*n_splt < ctx->n_splt) return 1;

memcpy(splt, &ctx->splt_list, ctx->n_splt * sizeof(struct spng_splt));
memcpy(splt, ctx->splt_list, ctx->n_splt * sizeof(struct spng_splt));

return 0;
}
Expand Down

0 comments on commit 5176386

Please sign in to comment.