Pārlūkot izejas kodu

Fixing an issue where I passed the wrong value in, causing an error with long buffers

Ayende Rahien 16 gadi atpakaļ
vecāks
revīzija
4d2582081d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/ProtocolBuffers/CodedInputStream.cs

+ 1 - 1
src/ProtocolBuffers/CodedInputStream.cs

@@ -863,7 +863,7 @@ namespace Google.ProtocolBuffers {
         }
 
         // Done.
-        return new ByteBuffer(buffer, 0, size);
+        return new ByteBuffer(bytes, 0, size);
       }
     }