JChristensen / DS3232RTC

Arduino Library for Maxim Integrated DS3232 and DS3231 Real-Time Clocks
GNU General Public License v3.0
394 stars 137 forks source link

Bug in example1 #77

Closed Ndolam closed 4 years ago

Ndolam commented 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.