Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17599
Modified Files:
Tag: Release_0_9_5_stable
noteshandler.c refdbdnote.c refdbdref.c risxhandler.c
Log Message:
fixed off-by-one errors in character conversion
Index: noteshandler.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/noteshandler.c,v
retrieving revision 1.18
retrieving revision 1.18.2.1
diff -u -U2 -r1.18 -r1.18.2.1
--- noteshandler.c 16 Feb 2004 21:38:05 -0000 1.18
+++ noteshandler.c 24 Jun 2004 21:10:07 -0000 1.18.2.1
@@ -638,5 +638,5 @@
if (ptr_andata->conv_descriptor && *((ptr_andata->ptr_first)->ptr_elvalue)) {
- inlength = strlen((ptr_andata->ptr_first)->ptr_elvalue) + 1;
+ inlength = strlen((ptr_andata->ptr_first)->ptr_elvalue)/* + 1 */;
/* with the encodings supported by our database engines, the converted
string can't be longer than the input string */
Index: refdbdnote.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbdnote.c,v
retrieving revision 1.25
retrieving revision 1.25.2.1
diff -u -U2 -r1.25 -r1.25.2.1
--- refdbdnote.c 15 Feb 2004 23:41:27 -0000 1.25
+++ refdbdnote.c 24 Jun 2004 21:10:07 -0000 1.25.2.1
@@ -2107,5 +2107,5 @@
char* my_sql_command_start = NULL; /* records initial state of my_elvalue */
const char* my_instring = NULL; /* this ptr will be modified by iconv() */
- inlength = strlen(sql_command) + 1;
+ inlength = strlen(sql_command)/* + 1 */;
/* with the encodings supported by our database engines, the converted
string can't be longer than six times the input string */
Index: refdbdref.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbdref.c,v
retrieving revision 1.65.2.1
retrieving revision 1.65.2.2
diff -u -U2 -r1.65.2.1 -r1.65.2.2
--- refdbdref.c 3 Jun 2004 21:41:02 -0000 1.65.2.1
+++ refdbdref.c 24 Jun 2004 21:10:07 -0000 1.65.2.2
@@ -4133,5 +4133,5 @@
const char* my_instring = NULL; /* this ptr will be modified by iconv() */
/* strlen should be ok here as this can't be a multibyte encoding */
- inlength = strlen(sql_command) + 1;
+ inlength = strlen(sql_command)/* + 1 */;
/* with the encodings supported by our database engines, the converted
string can't be longer than six times the input string */
Index: risxhandler.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/risxhandler.c,v
retrieving revision 1.28.2.1
retrieving revision 1.28.2.2
diff -u -U2 -r1.28.2.1 -r1.28.2.2
--- risxhandler.c 7 May 2004 21:27:51 -0000 1.28.2.1
+++ risxhandler.c 24 Jun 2004 21:10:08 -0000 1.28.2.2
@@ -649,5 +649,5 @@
if (ptr_ardata->conv_descriptor && *((ptr_ardata->ptr_first)->ptr_elvalue)) {
- inlength = strlen((ptr_ardata->ptr_first)->ptr_elvalue) + 1;
+ inlength = strlen((ptr_ardata->ptr_first)->ptr_elvalue)/* + 1 */;
/* with the encodings supported by our database engines, the converted
string can't be longer than the input string */
|