From c9a231db0e59658be419d926b1dfa17b939ba158 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 8d9000d9d7..bc3da82b20 100644 --- a/src/node_http_parser.cc +++ b/src/node_http_parser.cc @@ -191,7 +191,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];