Permalink
Browse files

Use cstring to get null termination

  • Loading branch information...
Jeremy Clifford
Jeremy Clifford committed Apr 14, 2012
1 parent 6fe7747 commit 8612dbcebc4e4ca7ce771903f8773ebe34206a5c
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib-clay/strings/strings.clay
@@ -91,4 +91,4 @@ inline overload cstring(s: String) {
// convert to cstringref
//
-inline overload CStringRef(s : String) = CStringRef(begin(s));
+inline overload CStringRef(s : String) = CStringRef(cstring(s));

0 comments on commit 8612dbc

Please sign in to comment.