#2927: Fix assigned value to wrong pointer

This commit is contained in:
Günter Obiltschnig 2021-04-11 17:31:22 +02:00
parent c5ee4b1184
commit d10fc9cb74

View File

@ -1313,7 +1313,7 @@ png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
if (key_len > 79) if (key_len > 79)
{ {
png_warning(png_ptr, "keyword length must be 1 - 79 characters"); png_warning(png_ptr, "keyword length must be 1 - 79 characters");
new_key[79] = '\0'; *new_key[79] = '\0';
key_len = 79; key_len = 79;
} }