Migrate last strings

FossilOrigin-Name: b81e2948d74e606b374ad69956719d748340eb128dc5e4c732781a2de71c2ba2
This commit is contained in:
Jonathan Schleifer 2025-03-15 23:42:51 +00:00
parent 71fff6f9a1
commit 9dff5ec70c
6 changed files with 76 additions and 69 deletions

View file

@ -47,8 +47,10 @@ sendstring(OFString *t_, uchar *&p)
{
@autoreleasepool {
const char *t = t_.UTF8String;
while (*t)
for (size_t i = 0; i < _MAXDEFSTR && *t != '\0'; i++)
putint(p, *t++);
putint(p, 0);
}
}