[macruby-changes] [2514] MacRuby/trunk/time.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 8 11:48:56 PDT 2009


Revision: 2514
          http://trac.macosforge.org/projects/ruby/changeset/2514
Author:   lsansonetti at apple.com
Date:     2009-09-08 11:48:55 -0700 (Tue, 08 Sep 2009)
Log Message:
-----------
teach Time#_load that the given bytestring has a null byte

Modified Paths:
--------------
    MacRuby/trunk/time.c

Modified: MacRuby/trunk/time.c
===================================================================
--- MacRuby/trunk/time.c	2009-09-08 18:44:27 UTC (rev 2513)
+++ MacRuby/trunk/time.c	2009-09-08 18:48:55 UTC (rev 2514)
@@ -2244,7 +2244,7 @@
     assert(*(VALUE *)str == rb_cByteString);
 
     buf = (unsigned char *)rb_bytestring_byte_pointer(str);
-    if (rb_bytestring_length(str) != 8) {
+    if (rb_bytestring_length(str) != 8 + 1) {
 	rb_raise(rb_eTypeError, "marshaled time format differ");
     }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090908/dc823d7b/attachment-0001.html>


More information about the macruby-changes mailing list