X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient%2Farray_append.c;h=b2bbab90342625152dde478d8aa181cdfde9ee15;hb=4438d108ea0242ed0a17207ae4cb1f4b30ce2f5b;hp=f4391c7c1e225505c35a1cfe025b6251a9aa50f0;hpb=539f4419afa0966d67b341dc6b30a6174bd3f844;p=plomrogue diff --git a/src/client/array_append.c b/src/client/array_append.c index f4391c7..b2bbab9 100644 --- a/src/client/array_append.c +++ b/src/client/array_append.c @@ -1,4 +1,9 @@ -/* src/client/array_append.c */ +/* src/client/array_append.c + * + * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3 + * or any later version. For details on its copyright, license, and warranties, + * see the file NOTICE in the root directory of the PlomRogue source package. + */ #include "array_append.h" #include /* size_t */ @@ -12,10 +17,9 @@ extern void array_append(uint32_t old_n, size_t region_size, void * new_region, void ** ptr_old_array) { - char * f_name = "array_append()"; uint32_t old_size = old_n * region_size; uint32_t new_size = old_size + region_size; - char * new_array = try_malloc(new_size, f_name); + char * new_array = try_malloc(new_size, __func__); memcpy(new_array, * ptr_old_array, old_size); memcpy(new_array + (old_n * region_size), new_region, region_size); free(* ptr_old_array);