Buffer::Length(Buffer*) should not invoke itself recursively.
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 8 Mar 2011 20:46:20 +0000 (21:46 +0100)
committerRyan Dahl <ry@tinyclouds.org>
Thu, 10 Mar 2011 22:06:01 +0000 (14:06 -0800)
Closes GH-759.

src/node_buffer.h

index 9a0e1d2..a548f2e 100644 (file)
@@ -63,7 +63,7 @@ class Buffer : public ObjectWrap {
   }
 
   static inline size_t Length(Buffer *b) {
-    return Buffer::Length(b);
+    return Buffer::Length(b->handle_);
   }