tty.setWindowSize should use the correct function
authorRyan Dahl <ry@tinyclouds.org>
Mon, 28 Feb 2011 19:18:56 +0000 (11:18 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 28 Feb 2011 19:19:10 +0000 (11:19 -0800)
Thanks to Matthew Woolman

src/node_stdio.cc

index c601478..1c790d1 100644 (file)
@@ -295,7 +295,7 @@ void Stdio::Initialize(v8::Handle<v8::Object> target) {
   NODE_SET_METHOD(target, "isStdinBlocking", IsStdinBlocking);
   NODE_SET_METHOD(target, "setRawMode", SetRawMode);
   NODE_SET_METHOD(target, "getWindowSize", GetWindowSize);
-  NODE_SET_METHOD(target, "setWindowSize", GetWindowSize);
+  NODE_SET_METHOD(target, "setWindowSize", SetWindowSize);
   NODE_SET_METHOD(target, "isatty", IsATTY);
   NODE_SET_METHOD(target, "openpty", OpenPTY);