ratstr(stats->rating), current_sterr(stats->sterr, now-stats->ltime),
stats->win, stats->los, stats->dra, stats->num);
if (stats->whenbest) {
+ time_t besttime = stats->whenbest; // [HGM] time_t could have larger size than int, so don't pass localtime a pointer to it
sprintf(tmp, " %d", stats->best);
strcat(dest, tmp);
- strftime(tmp, sizeof(tmp), " (%d-%b-%Y)", localtime((time_t *) & stats->whenbest));
+ strftime(tmp, sizeof(tmp), " (%d-%b-%Y)", localtime(&besttime));
strcat(dest, tmp);
}
strcat(dest, "\n");