len = snprintf(buffer, sizeof(buffer),
"%04d-%02d-%02d "
- "%02d:%02d:%02d "
- "(%d ft, %d min)",
+ "%02d:%02d:%02d",
tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
- tm->tm_hour, tm->tm_min, tm->tm_sec,
- to_feet(dive->maxdepth), dive->duration.seconds / 60);
+ tm->tm_hour, tm->tm_min, tm->tm_sec);
p = malloc(len+1);
if (!p)
exit(1);