shithub: mc

Download patch

ref: a2c579cf237bd9b76acda6862a5c52976bbbc66c
parent: 21265af6b02141e340a953540e760b2e683de562
author: Ori Bernstein <[email protected]>
date: Thu Apr 4 17:23:11 EDT 2013

Fix mixed tabs and spaces.

--- a/libstd/util.s
+++ b/libstd/util.s
@@ -14,18 +14,19 @@
 std$cstring:
 	movq (%rsp),%r15	/* ret addr */
 	movq 8(%rsp),%rsi	/* src */
-        movq %rsp,%rdi          /* dest */
+	movq %rsp,%rdi          /* dest */
 	movq %rsp,%rax          /* ret val */
 	movq 16(%rsp),%rcx	/* len */
-
+	
+	subq $16,%rsp		/* "unpop" the args */
 	subq %rcx,%rsp          /* get stack */
-        subq $1,%rsp            /* nul */
-        andq $(~15),%rsp        /* align */
-
+	subq $1,%rsp            /* nul */
+	andq $(~15),%rsp        /* align */
+	
 	cld
 	rep movsb
-        movb $0,(%rdi)          /* terminate */
-
+	movb $0,(%rdi)          /* terminate */
+	
 	pushq %r15              /* ret addr */
 	ret