Forgot what i did light max
Changed sizeof to strlen in the realloc fixes everything other then the warnings works a ok