Merge branch 'ebassi/gcc-12-fixes' into 'main'

Fix array-bounds compiler warnings with GCC 12

See merge request GNOME/glib!2873
This commit is contained in:
Emmanuele Bassi
2022-09-02 23:17:25 +00:00
4 changed files with 7 additions and 13 deletions

View File

@@ -710,7 +710,7 @@ merge_directory_results (void)
static_total_results = g_renew (struct search_result, static_total_results, static_total_results_allocated);
}
if (static_total_results + static_total_results_size != 0)
if (static_search_results_size != 0)
memcpy (static_total_results + static_total_results_size,
static_search_results,
static_search_results_size * sizeof (struct search_result));