aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/csource.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/csource/csource.go')
-rw-r--r--pkg/csource/csource.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go
index 55e52347c..7d3b133bf 100644
--- a/pkg/csource/csource.go
+++ b/pkg/csource/csource.go
@@ -96,7 +96,11 @@ func (ctx *context) generateSource() ([]byte, error) {
sandboxFunc := "loop();"
if ctx.opts.Sandbox != "" {
- sandboxFunc = "do_sandbox_" + ctx.opts.Sandbox + "();"
+ arguments := "();"
+ if ctx.opts.Sandbox == "android" {
+ arguments = "(0);"
+ }
+ sandboxFunc = "do_sandbox_" + ctx.opts.Sandbox + arguments
}
replacements := map[string]string{
"PROCS": fmt.Sprint(ctx.opts.Procs),