From 7b3fb22290c3b6acb497ca85cf2f1648d75c8154 Mon Sep 17 00:00:00 2001 From: isaacs Date: Tue, 17 Apr 2012 19:24:28 -0700 Subject: [PATCH] typo in node_http_parser --- src/node_http_parser.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_http_parser.cc b/src/node_http_parser.cc index af372902726..b29afe25690 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -148,7 +148,7 @@ struct StringPtr { void Update(const char* str, size_t size) { if (str_ == NULL) str_ = str; - else if (on_heap_ || str_ + size != str) { + else if (on_heap_ || str_ + size_ != str) { // Non-consecutive input, make a copy on the heap. // TODO Use slab allocation, O(n) allocs is bad. char* s = new char[size_ + size];