<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -180,9 +180,9 @@ VALUE read_atom(unsigned char **pData) {
   read_string_raw(buf, pData, length);
 
   // Erlang true and false are actually atoms
-  if(strncmp((char *) buf, &quot;true&quot;, length) == 0) {
+  if(length == 4 &amp;&amp; strncmp((char *) buf, &quot;true&quot;, length) == 0) {
     return Qtrue;
-  } else if(strncmp((char *) buf, &quot;false&quot;, length) == 0) {
+  } else if(length == 5 &amp;&amp; strncmp((char *) buf, &quot;false&quot;, length) == 0) {
     return Qfalse;
   } else {
     return ID2SYM(rb_intern((char *) buf));</diff>
      <filename>ext/decoder.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>180248ff424c44a6f82b479cf1db4d890aef95a1</id>
    </parent>
  </parents>
  <author>
    <name>bwbuchanan</name>
    <email>bwb@holo.org</email>
  </author>
  <url>http://github.com/mojombo/erlectricity/commit/9e59c0360774f0e1ef74000b7fde0a12930dfe31</url>
  <id>9e59c0360774f0e1ef74000b7fde0a12930dfe31</id>
  <committed-date>2009-06-03T15:16:02-07:00</committed-date>
  <authored-date>2009-06-03T15:16:02-07:00</authored-date>
  <message>Fix decoding of atoms.</message>
  <tree>054dc7ebf4c3fafde2088fd8534dc918a80455f2</tree>
  <committer>
    <name>bwbuchanan</name>
    <email>bwb@holo.org</email>
  </committer>
</commit>
