[Refdb-cvs] CVS: refdb/src noteshandler.c,1.11,1.12 refdbdbib.c,1.30,1.31 refdbdnote.c,1.15,1.16
Status: Beta
Brought to you by:
mhoenicka
|
From: Markus H. <mho...@us...> - 2004-01-19 23:20:11
|
Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1:/tmp/cvs-serv1491
Modified Files:
noteshandler.c refdbdbib.c refdbdnote.c
Log Message:
update length info of allocated string when moving the iconv()-fiddled string
Index: noteshandler.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/noteshandler.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -U2 -r1.11 -r1.12
--- noteshandler.c 17 Jan 2004 22:47:20 -0000 1.11
+++ noteshandler.c 19 Jan 2004 23:20:07 -0000 1.12
@@ -686,4 +686,5 @@
}
(ptr_andata->ptr_first)->ptr_elvalue = my_elvalue_start;
+ (ptr_andata->ptr_first)->n_elvalue_len = outlength;
}
/* else: no conversion required */
Index: refdbdbib.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbdbib.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -U2 -r1.30 -r1.31
--- refdbdbib.c 18 Jan 2004 21:17:37 -0000 1.30
+++ refdbdbib.c 19 Jan 2004 23:20:07 -0000 1.31
@@ -908,7 +908,4 @@
}
- /* todo: run iconv here */
-
-
/* run a character encoding conversion if required */
if (conv_descriptor && *outbuffer) {
@@ -962,4 +959,5 @@
}
outbuffer = my_outbuffer_start;
+ outbuffer_len = outlength;
}
/* else: no conversion required */
Index: refdbdnote.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/refdbdnote.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -U2 -r1.15 -r1.16
--- refdbdnote.c 18 Jan 2004 21:19:11 -0000 1.15
+++ refdbdnote.c 19 Jan 2004 23:20:07 -0000 1.16
@@ -2051,4 +2051,5 @@
}
sql_command = my_sql_command_start;
+ sql_command_len = outlength;
}
/* else: no conversion required */
|