Skip to content

Commit

Permalink
Get the correct argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
octalmage committed Oct 6, 2015
1 parent 14f2770 commit b39d416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/robotjs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ NAN_METHOD(mouseToggle)
{
char *d;

Nan::Utf8String bstr(info[1]);
d = *bstr;
Nan::Utf8String dstr(info[0]);
d = *dstr;

if (strcmp(d, "down") == 0)
{
Expand Down

0 comments on commit b39d416

Please sign in to comment.