Permalink
Browse files

Fix print() when supplied with coordinates

  • Loading branch information...
mscdex committed Aug 16, 2011
1 parent d5c8fc1 commit 9b4cf305829edd846e997b60b0ce00974f77ef7a
Showing with 1 addition and 1 deletion.
  1. +1 −1 ncurses.cc
View
@@ -1455,7 +1455,7 @@ class Window : public ObjectWrap {
String::Utf8Value str(args[0]->ToString());
ret = win->panel()->printw("%s", ToCString(str));
} else if (args.Length() == 3 && args[0]->IsInt32() && args[1]->IsInt32() && args[2]->IsString()) {
- String::Utf8Value str(args[0]->ToString());
+ String::Utf8Value str(args[2]->ToString());
ret = win->panel()->printw(args[0]->Int32Value(), args[1]->Int32Value(), "%s", ToCString(str));
} else {
return ThrowException(Exception::Error(

0 comments on commit 9b4cf30

Please sign in to comment.