// old for (int input = 0; input < MAX_INPUTS + 1; input++) { sub[slot].udp_volts[input] = calloc(UDP_PER_RF_PER_SUB, sizeof(char *)); } // new char **pool = calloc(UDP_PER_RF_PER_SUB * (MAX_INPUTS + 1), sizeof(char *)); for (int input = 0; input < MAX_INPUTS + 1; input++) { sub[slot].udp_volts[input] = pool; pool = pool + UDP_PER_RF_PER_SUB; }
https://files.mastodon.social/media_attachments/files/113/446/405/039/360/776/original/ed6546a6957b294b.png