summaryrefslogtreecommitdiff
path: root/src/fs_event_wrap.cc
diff options
context:
space:
mode:
authorTimothy J Fontaine <tjfontaine@gmail.com>2014-04-09 17:33:33 -0700
committerTimothy J Fontaine <tjfontaine@gmail.com>2014-06-06 15:07:29 -0700
commit535c7777ac674ba86cf93c44824e07b0e23ea8c4 (patch)
tree3a4ffb376febdee64f8c7567d6e60aede3120901 /src/fs_event_wrap.cc
parent0da4c671659cfbae12def127b2e94690b9d9b5e1 (diff)
downloadandroid-node-v8-535c7777ac674ba86cf93c44824e07b0e23ea8c4.tar.gz
android-node-v8-535c7777ac674ba86cf93c44824e07b0e23ea8c4.tar.bz2
android-node-v8-535c7777ac674ba86cf93c44824e07b0e23ea8c4.zip
src: replace usage of String::Utf8Value
v8::String::Utf8Value previously could allow invalid surrogates when interpreting values.
Diffstat (limited to 'src/fs_event_wrap.cc')
-rw-r--r--src/fs_event_wrap.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fs_event_wrap.cc b/src/fs_event_wrap.cc
index 7e3eb8c529..fc54283d46 100644
--- a/src/fs_event_wrap.cc
+++ b/src/fs_event_wrap.cc
@@ -21,6 +21,7 @@
#include "node.h"
#include "handle_wrap.h"
+#include "util.h"
#include <stdlib.h>
@@ -97,7 +98,7 @@ Handle<Value> FSEventWrap::Start(const Arguments& args) {
return ThrowException(Exception::TypeError(String::New("Bad arguments")));
}
- String::Utf8Value path(args[0]);
+ node::Utf8Value path(args[0]);
int r = uv_fs_event_init(uv_default_loop(), &wrap->handle_, *path, OnEvent, 0);
if (r == 0) {