I have this code:
char buffer[12]; snprintf(buffer, 12, "%d-%02d-%02d", y, m, d); strcpy(date, buffer); -< this line causes heap