summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.go b/src/main.go
index 3b7c0ce..9e61566 100644
--- a/src/main.go
+++ b/src/main.go
@@ -145,7 +145,7 @@ func parse(tokens[]Token) []Operation {
} else if tokens[i].str[0] == '"' {
op.name = "string"
op.strData = tokens[i].str
- op.intData = len(tokens[i].str)
+ op.intData = len(tokens[i].str) - 1 /* -2 for removing `"` at the beginning and include \n at the end */
op.label = fmt.Sprintf("string_%d", stringlabel)
stringlabel++
} else if len(tokens[i].str) == 9 && tokens[i].str[:8] == "syscall." {