I am working on an application were there are three possible sizes for the data entered:
It's too big for the stack. Instead you need to allocate it on the heap with malloc.