Changeset: 7177f1898fe2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7177f1898fe2
Modified Files:
clients/odbc/driver/SQLConnect.c
Branch: Aug2024
Log Message:
Copy data, not the pointer
diffs (12 lines):
diff --git a/clients/odbc/driver/SQLConnect.c b/clients/odbc/driver/SQLConnect.c
--- a/clients/odbc/driver/SQLConnect.c
+++ b/clients/odbc/driver/SQLConnect.c
@@ -121,7 +121,7 @@ makeNulTerminated(const SQLCHAR **argume
SQLCHAR *value = malloc(argument_len + 1);
if (value == NULL)
return false;
- memmove(value, argument, argument_len);
+ memmove(value, *argument, argument_len);
value[argument_len] = '\0';
*argument = value;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]