Fix bugs
This commit is contained in:
parent
a6a7858eaf
commit
69776245a7
20 changed files with 59721 additions and 58907 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue