Closed Ndolam closed 4 years ago
You have char compMon[3], *m; and later write compMon[3] = '\0'; which means you are writing past the end of the array. Make compMon have size 4.
You have char compMon[3], *m; and later write compMon[3] = '\0'; which means you are writing past the end of the array. Make compMon have size 4.