shithub: mc

Download patch

ref: 7cabbcaadda4e29ad0b04f8f8b6ff41139adb03d
parent: 68b9ac1db448f98bb985a93216537d2419634a52
author: Ori Bernstein <[email protected]>
date: Tue Dec 30 13:07:58 EST 2014

Clean up C string conversion code a bit.

--- a/libstd/cstrconv.myr
+++ b/libstd/cstrconv.myr
@@ -7,8 +7,8 @@
 
 	for i = 0; i < buf.len; i++
 		if buf[i] == 0
-			break
+			-> buf[:i]
 		;;
 	;;
-	-> buf[:i]
+	-> buf
 }