Lines Matching refs:new_key
1201 * The new_key is allocated to hold the corrected keyword and must be freed
1206 png_check_keyword(png_structp png_ptr, png_charp key, png_charpp new_key)
1214 *new_key = NULL;
1224 *new_key = (png_charp)png_malloc_warn(png_ptr, (png_uint_32)(key_len + 2));
1225 if (*new_key == NULL)
1232 for (kp = key, dp = *new_key; *kp != '\0'; kp++, dp++)
1256 kp = *new_key + key_len - 1;
1269 kp = *new_key;
1284 for (kflag = 0, dp = *new_key; *kp != '\0'; kp++)
1308 png_free(png_ptr, *new_key);
1309 *new_key=NULL;
1316 new_key[79] = '\0';
1334 png_charp new_key;
1337 if (key == NULL || (key_len = png_check_keyword(png_ptr, key, &new_key))==0)
1356 png_write_chunk_data(png_ptr, (png_bytep)new_key, key_len + 1);
1361 png_free(png_ptr, new_key);
1376 png_charp new_key;
1387 if (key == NULL || (key_len = png_check_keyword(png_ptr, key, &new_key))==0)
1395 png_write_tEXt(png_ptr, new_key, text, (png_size_t)0);
1396 png_free(png_ptr, new_key);
1410 png_write_chunk_data(png_ptr, (png_bytep)new_key, key_len + 1);
1411 png_free(png_ptr, new_key);
1434 png_charp new_lang, new_key;
1445 if (key == NULL || (key_len = png_check_keyword(png_ptr, key, &new_key))==0)
1489 png_write_chunk_data(png_ptr, (png_bytep)new_key, key_len + 1);
1507 png_free(png_ptr, new_key);