Revision: 44586
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44586&view=rev
Author:   starseeker
Date:     2011-05-09 19:45:29 +0000 (Mon, 09 May 2011)

Log Message:
-----------
whoops - need the zero on the ninth too

Modified Paths:
--------------
    brlcad/trunk/misc/CMake/test_srcs/time.c.in

Modified: brlcad/trunk/misc/CMake/test_srcs/time.c.in
===================================================================
--- brlcad/trunk/misc/CMake/test_srcs/time.c.in 2011-05-09 19:12:25 UTC (rev 
44585)
+++ brlcad/trunk/misc/CMake/test_srcs/time.c.in 2011-05-09 19:45:29 UTC (rev 
44586)
@@ -14,9 +14,9 @@
   outfpmonth = fopen("${CONFIG_TIME_MONTH_FILE}", "w");
   outfpyear = fopen("${CONFIG_TIME_YEAR_FILE}", "w");
   fprintf(outfpts, "%s", asctime(currenttime));
-  if (currenttime->tm_mday + 1 < 10) fprintf(outfpday, "0");
+  if (currenttime->tm_mday < 10) fprintf(outfpday, "0");
   fprintf(outfpday, "%d", currenttime->tm_mday);
-  if (currenttime->tm_mon + 1 < 10) fprintf(outfpmonth, "0");
+  if (currenttime->tm_mon < 10) fprintf(outfpmonth, "0");
   fprintf(outfpmonth, "%d", currenttime->tm_mon + 1);
   fprintf(outfpyear, "%d", currenttime->tm_year + 1900);
   fclose(outfpts);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to