[Refdb-cvs] CVS: refdb/src refdb-client.c,1.27,1.28
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mho...@us...> - 2004-02-04 21:03:45
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16246 Modified Files: refdb-client.c Log Message: fix length of terminator Index: refdb-client.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdb-client.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -U2 -r1.27 -r1.28 --- refdb-client.c 31 Jan 2004 14:50:22 -0000 1.27 +++ refdb-client.c 4 Feb 2004 21:01:13 -0000 1.28 @@ -721,5 +721,5 @@ if (!n_cgi) { (*ptr_ris_set_buffer)[0] = '\0'; - *ptr_n_setlength = 1; /* the 1 is for the terminating \0 */ + *ptr_n_setlength = TERM_LEN; /* for the terminating \0's */ n_result = read_ris_set(infp, default_ris, ptr_ris_set_buffer, ptr_n_setlength, 0); @@ -738,5 +738,5 @@ } - if (*ptr_n_setlength != 1) { /* if dataset is not empty */ + if (*ptr_n_setlength != TERM_LEN) { /* if dataset is not empty */ /* send length information to database server */ sprintf(thebytes, "%d", *ptr_n_setlength); |