Probably should malloc these arrays...