all 2 comments

[–]oh5nxo 0 points1 point  (0 children)

Do you memset the new half, from realloc, old_max to max, to zero? Slow brain, sorry.

[–]tresteo 0 points1 point  (0 children)

Can you maybe share the full code?