Is it possible to replace the static allocation for modified_proj with a dynamic allocation made based on the size of the string returned by nvpair_lookup_string(global_catalog[i], "project")?