This commit is contained in:
Nishi 2026-06-21 16:55:56 +09:00
commit 69776245a7
20 changed files with 59721 additions and 58907 deletions

View file

@ -26,7 +26,7 @@
#include <sys/stat.h>
#include "sj4_dict_struct.h"
#include "sj_compat.h"
#include "sj4compat.h"
/* char.c */
int cnvyomi(int);

View file

@ -26,7 +26,7 @@ int main(int argc, char** argv) {
}
i = 0;
while((strlen(c) - i) > 0 && (i += cl2knj(ctx, (u_char*)c + i, strlen(c) - i, (u_char*)out))) {
while((strlen(c) - i) > 0 && (i += cl2knj(ctx, (u_char*)c + i, strlen(c) - i, (u_char*)out, sizeof(out) - 1))) {
STDYOUT* s = (STDYOUT*)out;
printf("> %s\n", out + sizeof(STDYOUT));