List:Commits« Previous MessageNext Message »
From:jwinstead Date:November 26 2007 8:11pm
Subject:Connector/ODBC 3.51 commit: r893 - branches/guffert/util
View as plain text  
Modified:
   branches/guffert/util/installer.c
Log:
Fix ds_to_kvpair() to return number of characters, as documented, not number
of bytes.


Modified: branches/guffert/util/installer.c
===================================================================
--- branches/guffert/util/installer.c	2007-11-26 20:10:23 UTC (rev 892)
+++ branches/guffert/util/installer.c	2007-11-26 20:11:52 UTC (rev 893)
@@ -757,7 +757,7 @@
   /* always ends in delimiter, so overwrite it */
   *(attrs - 1)= 0;
 
-  return origchars - attrslen;
+  return (origchars - attrslen) / sizeof(SQLWCHAR);
 }
 
 

Thread
Connector/ODBC 3.51 commit: r893 - branches/guffert/utiljwinstead26 Nov