Access of freed memory in main.c
In line 364 state gets accessed by printf, while state was set to char array "zustand", whose scope is inside the if-statement.
Solution: Use strcpy and allocate sizeof(zustand) bytes for state.
In line 364 state gets accessed by printf, while state was set to char array "zustand", whose scope is inside the if-statement.
Solution: Use strcpy and allocate sizeof(zustand) bytes for state.