=================================================================== RCS file: /home/cvs/OpenXM/src/ox_toolkit/ox.c,v retrieving revision 1.48 retrieving revision 1.49 diff -u -p -r1.48 -r1.49 --- OpenXM/src/ox_toolkit/ox.c 2016/06/30 01:14:00 1.48 +++ OpenXM/src/ox_toolkit/ox.c 2022/03/28 09:12:38 1.49 @@ -1,5 +1,5 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM: OpenXM/src/ox_toolkit/ox.c,v 1.47 2016/06/29 05:07:23 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. @@ -181,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