comparison win/dw.c @ 87:1eb72c0e8c79

Fixed a problem with the date type in the containers... month should be 0 based not 1 based.... from stat().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 03 Apr 2002 05:48:15 +0000
parents aec9a0b0b539
children 58d8139fe0a2
comparison
equal deleted inserted replaced
86:a2b13e127d25 87:1eb72c0e8c79
5679 } 5679 }
5680 else if(flags[column] & DW_CFA_DATE) 5680 else if(flags[column] & DW_CFA_DATE)
5681 { 5681 {
5682 CDATE fdate = *((CDATE *)data); 5682 CDATE fdate = *((CDATE *)data);
5683 5683
5684 if(fdate.month > 0) 5684 if(fdate.month > -1 && fdate.month < 12 && fdate.day > 0 && fdate.year > 0)
5685 sprintf(textbuffer, "%s %d, %d", monthlist[fdate.month-1], fdate.day, fdate.year); 5685 sprintf(textbuffer, "%s %d, %d", monthlist[fdate.month], fdate.day, fdate.year);
5686 else 5686 else
5687 strcpy(textbuffer, ""); 5687 strcpy(textbuffer, "");
5688 lvi.pszText = textbuffer; 5688 lvi.pszText = textbuffer;
5689 lvi.cchTextMax = strlen(textbuffer); 5689 lvi.cchTextMax = strlen(textbuffer);
5690 } 5690 }