Tool/software:
I'm not sure if the is a "C" issue or something more specific to CCS.
I am trying to create a build string as follows:
char build_date[20] = __DATE__;
char build_time[20] = __TIME__;
char buildinfo[40];
void generate_builddate_string(){
int i;
for (i=0; i < 40; i++){
gui_buildinfo[i] = '\0';
}
sprintf((char*)buildinfo,"%s %s", build_date, build_time);
}
If I check build_time in CCS expressions, it is correct, including the last 2 characters being the seconds for the build.
If I check buildinfo in CCS expressions, the seconds characters are not correct. The rest of buildinfo is correct.

Any suggestions why those last two characters of buildinfo are not correct?
(Target is 28379D)
Thanks!