diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libkogata/syscall.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c index dc7e648..342426b 100644 --- a/src/lib/libkogata/syscall.c +++ b/src/lib/libkogata/syscall.c @@ -4,12 +4,7 @@ #include <string.h> void dbg_print(const char* str) { - - char buf[256]; - strncpy(buf, str, 256); - buf[255] = 0; - - asm volatile("int $0x40"::"a"(SC_DBG_PRINT),"b"(buf)); + asm volatile("int $0x40"::"a"(SC_DBG_PRINT),"b"(str),"c"(strlen(str))); } void yield() { |