Author: toshok
Date: 2007-06-11 15:17:12 -0400 (Mon, 11 Jun 2007)
New Revision: 79205
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/xaml.cpp
Log:
2007-06-11 Chris Toshok <[EMAIL PROTECTED]>
* xaml.cpp (timespan_from_str): fix reading off the end of digits
array.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-06-11 19:07:23 UTC (rev 79204)
+++ trunk/moon/src/ChangeLog 2007-06-11 19:17:12 UTC (rev 79205)
@@ -1,3 +1,8 @@
+2007-06-11 Chris Toshok <[EMAIL PROTECTED]>
+
+ * xaml.cpp (timespan_from_str): fix reading off the end of digits
+ array.
+
2007-06-11 Jackson Harper <[EMAIL PROTECTED]>
* xaml.cpp: Implement some more collection loading. A lot of
Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp 2007-06-11 19:07:23 UTC (rev 79204)
+++ trunk/moon/src/xaml.cpp 2007-06-11 19:17:12 UTC (rev 79205)
@@ -395,7 +395,7 @@
// TODO: This could overflow?
res = ((digits [0] * 86400) + (digits [1] * 3600) + (digits [2] * 60) +
digits [3]);
res *= 10000L;
- res += digits [5];
+ res += digits [4];
return res;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches