My favorites
▼
|
Sign in
pyodbc
Python ODBC library
Project Home
Downloads
Wiki
READ-ONLY: This project has been
archived
. For more information see
this post
.
Search
Search within:
All issues
Open issues
New issues
Issues to verify
for
Advanced search
Search tips
Subscriptions
Issue
170
attachment: pyodbc_sqlwchar.patch
(401 bytes)
1
2
3
4
5
6
7
8
9
10
11
--- sqlwchar.cpp Sun Aug 21 11:46:16 2011
+++ sqlwchar.cpp Wed Oct 26 05:11:08 2011
@@ -149,7 +149,7 @@
SQLWCHAR* SQLWCHAR_FromUnicode(const Py_UNICODE* pch, Py_ssize_t len)
{
- SQLWCHAR* p = (SQLWCHAR*)pyodbc_malloc(sizeof(SQLWCHAR) * len);
+ SQLWCHAR* p = (SQLWCHAR*)pyodbc_malloc(sizeof(SQLWCHAR) * (len + 1));
if (p != 0)
{
if (!sqlwchar_copy(p, pch, len))
Powered by
Google Project Hosting