summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authordmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-08 03:51:36 +0000
committerdmichael@chromium.org <dmichael@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-08 03:51:36 +0000
commitbe6a084df99020971c7fb345b0698ceb81a48436 (patch)
tree55a5565c63a98bff6c3a9a0ae632bf80df3cb616 /native_client_sdk
parentf0c662c2ee4930b0441520ad99a2abe2ffab7443 (diff)
downloadchromium_src-be6a084df99020971c7fb345b0698ceb81a48436.zip
chromium_src-be6a084df99020971c7fb345b0698ceb81a48436.tar.gz
chromium_src-be6a084df99020971c7fb345b0698ceb81a48436.tar.bz2
Update the NaCl SDK C example to handle removing module from VarFromUtf8
BUG=106596 TEST=NaCl SDK Hello World C example builds and runs successfully. TBR=noelallen1 Review URL: http://codereview.chromium.org/8883008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113557 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/src/examples/hello_world_c/hello_world_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/native_client_sdk/src/examples/hello_world_c/hello_world_c.c b/native_client_sdk/src/examples/hello_world_c/hello_world_c.c
index 939e724..23a6441 100644
--- a/native_client_sdk/src/examples/hello_world_c/hello_world_c.c
+++ b/native_client_sdk/src/examples/hello_world_c/hello_world_c.c
@@ -70,7 +70,7 @@ static char* VarToCStr(struct PP_Var var) {
*/
static struct PP_Var CStrToVar(const char* str) {
if (ppb_var_interface != NULL) {
- return ppb_var_interface->VarFromUtf8(module_id, str, strlen(str));
+ return ppb_var_interface->VarFromUtf8(str, strlen(str));
}
return PP_MakeUndefined();
}