Use proper string types with embedded length

This commit is contained in:
Ayke van Laethem
2018-04-12 14:44:33 +02:00
parent 0e99366568
commit e1b04abd46
3 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
#include <stdio.h>
#include "runtime.h"
void __go_printstring(char *str) {
write(STDOUT_FILENO, str, strlen(str));
void __go_printstring(string_t *str) {
write(STDOUT_FILENO, str->buf, str->len);
}
void __go_printspace() {