Overview
Comment: | change testbin to pass appropriate string lengths to kiosend |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
3626b335f2f332521bb024f42c518ed3 |
User & Date: | lexi on 2019-10-21 01:03:38 |
Other Links: | manifest | tags |
Context
2019-10-21
| ||
01:40 | add volatile qualifiers, add helper functions for error mechanism check-in: 6bc8ca3cac user: lexi tags: trunk | |
01:03 | change testbin to pass appropriate string lengths to kiosend check-in: 3626b335f2 user: lexi tags: trunk | |
2019-09-04
| ||
01:23 | update kcli syntax check-in: 5c1200e1a8 user: lexi tags: trunk | |
Changes
Modified mod/kcore/testbin.exe.c from [aec04b5f97] to [b799b010e3].
5 5 6 6 struct object { 7 7 u8 a; 8 8 s16 b; 9 9 bool c; 10 10 }; 11 11 12 -#define _slit(s) ((ksraw){Kmsz(s),s}) 12 +#define _slit(s) ((ksraw){Kmsz(s) - 1,s}) 13 13 14 14 kbad entry(kenv e) { 15 15 const char msg[] = "hello from libk\n"; 16 - ksraw ptr = { Kmsz(msg), msg }; 16 + ksraw ptr = { Kmsz(msg) - 1, msg }; 17 17 18 18 bool maybe = true; 19 19 maybe = no; 20 20 21 21 if (kiosend(e.std, ptr, null) == kiocond_ok) { 22 22 /* great, continue */ 23 23 } else {