Changeset: 0d88f8629ed7 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/0d88f8629ed7 Modified Files: clients/mapilib/msettings_internal.h Branch: odbc_loader Log Message:
fixup allow custom allocator for msettings diffs (17 lines): diff --git a/clients/mapilib/msettings_internal.h b/clients/mapilib/msettings_internal.h --- a/clients/mapilib/msettings_internal.h +++ b/clients/mapilib/msettings_internal.h @@ -126,9 +126,11 @@ msettings_strdup(const msettings *mp, co return NULL; size_t size = strlen(string); - char *new_string = msettings_alloc(mp, size); - if (new_string) + char *new_string = msettings_alloc(mp, size + 1); + if (new_string) { memcpy(new_string, string, size); + new_string[size] = '\0'; + } return new_string; } _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org