Skip to content

Commit c45349d

Browse files
committed
Add namespace to call
1 parent 8a7cd53 commit c45349d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/examples/noop-hello-example/main-withanchors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ int array[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
6363
const char* helloStr = "hi hi!";
6464
size_t helloSize = strlen(helloStr) + 1;
6565
tainted_mylib<char*> taintedStr = sandbox.malloc_in_sandbox<char>(helloSize);
66-
strncpy(sandbox, taintedStr, helloStr, helloSize);
66+
rlbox::strncpy(sandbox, taintedStr, helloStr, helloSize);
6767
// ANCHOR_END: echo-pre
6868
// ANCHOR: echo
6969
sandbox.invoke_sandbox_function(echo, taintedStr);

src/examples/noop-hello-example/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ int array[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
4646
const char* helloStr = "hi hi!";
4747
size_t helloSize = strlen(helloStr) + 1;
4848
tainted_mylib<char*> taintedStr = sandbox.malloc_in_sandbox<char>(helloSize);
49-
strncpy(sandbox, taintedStr, helloStr, helloSize);
49+
rlbox::strncpy(sandbox, taintedStr, helloStr, helloSize);
5050
sandbox.invoke_sandbox_function(echo, taintedStr);
5151
sandbox.free_in_sandbox(taintedStr);
5252

0 commit comments

Comments
 (0)