lucene-pylucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From va...@apache.org
Subject svn commit: r964000 - /lucene/pylucene/branches/python_3/jcc/jcc/sources/functions.cpp
Date Wed, 14 Jul 2010 10:21:29 GMT
Author: vajda
Date: Wed Jul 14 10:21:29 2010
New Revision: 964000

URL: http://svn.apache.org/viewvc?rev=964000&view=rev
Log:
fixed off by one error

Modified:
    lucene/pylucene/branches/python_3/jcc/jcc/sources/functions.cpp

Modified: lucene/pylucene/branches/python_3/jcc/jcc/sources/functions.cpp
URL: http://svn.apache.org/viewvc/lucene/pylucene/branches/python_3/jcc/jcc/sources/functions.cpp?rev=964000&r1=963999&r2=964000&view=diff
==============================================================================
--- lucene/pylucene/branches/python_3/jcc/jcc/sources/functions.cpp (original)
+++ lucene/pylucene/branches/python_3/jcc/jcc/sources/functions.cpp Wed Jul 14 10:21:29 2010
@@ -998,7 +998,7 @@ char *PyUnicode_AsString(PyObject *obj, 
     else if (size > 0)
     {
         memcpy(buffer, str, size - 1);
-        buffer[size] = '\0';
+        buffer[size - 1] = '\0';
     }
 
     Py_XDECREF(bytes);



Mime
View raw message