summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lace_x86.asm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lace_x86.asm b/lace_x86.asm
index ee615ea..687b8e0 100644
--- a/lace_x86.asm
+++ b/lace_x86.asm
@@ -116,10 +116,11 @@ _start:
pop edi ; recover socket fd
sub esp, 0xff ; alloc data buffer
- xor esi, esi ; pipe(sock, stdin)
+ xor esi, esi ; pipe(sock_fd, stdin)
call pipe
- xchg edi, esi ; pipe(stdin, sock)
+ inc esi ; pipe(stdout, sock_fd)
+ xchg edi, esi
call pipe
xor ebx, ebx ; exit(0)