summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstd/util.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstd/util.s b/libstd/util.s
index 718430b..f56ea42 100644
--- a/libstd/util.s
+++ b/libstd/util.s
@@ -18,6 +18,7 @@ std$cstring:
movq %rsp,%rax /* ret val */
movq 16(%rsp),%rcx /* len */
+ subq $16,%rsp /* compensate for args */
subq %rcx,%rsp /* get stack */
subq $1,%rsp /* nul */
andq $(~15),%rsp /* align */