static char * dt_style_encode(sqlite3_stmt *stmt, int row) { const int32_t len = sqlite3_column_bytes(stmt, row); char *vparams = dt_exif_xmp_encode ((const unsigned char *)sqlite3_column_blob(stmt, row), len, NULL); return vparams; }
static char * dt_style_encode(sqlite3_stmt *stmt, int row) { const int32_t len = sqlite3_column_bytes(stmt, row); char *vparams = (char *)malloc(2*len + 1); dt_exif_xmp_encode ((const unsigned char *)sqlite3_column_blob(stmt, row), vparams, len); return vparams; }