bug fix did not clear variable in c for buffer overflow for some reason!