=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/ox.c,v retrieving revision 1.47 retrieving revision 1.49 diff -u -p -r1.47 -r1.49 --- OpenXM/src/ox_toolkit/ox.c 2016/06/29 05:07:23 1.47 +++ OpenXM/src/ox_toolkit/ox.c 2022/03/28 09:12:38 1.49 @@ -1,10 +1,8 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.46 2016/06/28 11:59:15 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.48 2016/06/30 01:14:00 ohara Exp $ */ /* This module includes functions for sending/receiveng CMO's. - Some commnets is written in Japanese by the EUC-JP coded - character set. */ #include @@ -183,11 +181,12 @@ static cmo_int32* receive_cmo_int32(OXFILE *oxfp) static cmo_string* receive_cmo_string(OXFILE *oxfp) { + int i,n; int len = receive_int32(oxfp); char* s = MALLOC(len+1); memset(s, '\0', len+1); - if (len > 0) { - oxf_read(s, 1, len, oxfp); + for(i=0; i