Mercurial > dwindows
diff gtk/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 | a2b13e127d25 |
children | eeb98f881663 |
line wrap: on
line diff
--- a/gtk/dw.c Mon Apr 01 09:51:08 2002 +0000 +++ b/gtk/dw.c Wed Apr 03 05:48:15 2002 +0000 @@ -3478,8 +3478,8 @@ { CDATE fdate = *((CDATE *)data); - if(fdate.month > 0) - sprintf(textbuffer, "%s %d, %d", monthlist[fdate.month-1], fdate.day, fdate.year); + if(fdate.month > -1 && fdate.month < 12 && fdate.day > 0 && fdate.year > 0) + sprintf(textbuffer, "%s %d, %d", monthlist[fdate.month], fdate.day, fdate.year); else strcpy(textbuffer, "");