summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-01-27 18:29:40 +0100
committertomsmeding <tom.smeding@gmail.com>2016-01-27 18:29:40 +0100
commit67602f4c0d29c5805162e6e18aeaf4e5a16eaa0f (patch)
tree2f461b74f24e09a050c4e2f3b5227535d3912bd9
parent86fd14bdb6168f21c2144811645bc64c73354cba (diff)
fix segfault when not giving port
-rw-r--r--asmnc.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/asmnc.asm b/asmnc.asm
index 51bfb3e..8f31243 100644
--- a/asmnc.asm
+++ b/asmnc.asm
@@ -19,7 +19,7 @@ _main: ;int(int argc,char **argv)
mov rax, [rsi+8]
mov [.hoststrp], rax
- mov rax, [.str80]
+ lea rax, [.str80]
cmp rdi, 2
cmovg rax, [rsi+16]
mov [.portstrp], rax