[Refdb-cvs] CVS: refdb/src refdbdbib.c,1.36.2.1,1.36.2.2
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2004-06-24 20:32:25
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8731/src Modified Files: Tag: Release_0_9_5_stable refdbdbib.c Log Message: fixed off-by-one error in character conversions Index: refdbdbib.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/refdbdbib.c,v retrieving revision 1.36.2.1 retrieving revision 1.36.2.2 diff -u -U2 -r1.36.2.1 -r1.36.2.2 --- refdbdbib.c 5 May 2004 19:36:03 -0000 1.36.2.1 +++ refdbdbib.c 24 Jun 2004 20:32:16 -0000 1.36.2.2 @@ -916,7 +916,7 @@ size_t orig_outlength; char* my_outbuffer = NULL; /* this ptr will be modified by iconv() */ - char* my_outbuffer_start = NULL; /* records initial state of my_elvalue */ + char* my_outbuffer_start = NULL; /* records initial state of outbuffer */ const char* my_instring = NULL; /* this ptr will be modified by iconv() */ - inlength = strlen(outbuffer) + 1; + inlength = strlen(outbuffer); /* with the encodings supported by our database engines, the converted string can't be longer than six times the input string */ |