Ops, first column name must be sanitized too. Attached is a better patch.
--- mdbtools-0.5.99.0.6pre1.0.20051109.keep/src/util/mdb-export.c 2006-01-30 17:21:51.000000000 +0100
+++ mdbtools-0.5.99.0.6pre1.0.20051109/src/util/mdb-export.c 2010-01-17 21:23:06.000000000 +0100
@@ -174,11 +174,11 @@
}
if (header_row) {
col=g_ptr_array_index(table->columns,0);
- fprintf(stdout,"%s",col->name);
+ fprintf(stdout, "%s", sanitize_name(col->name,sanitize));
for (j=1;j<table->num_cols;j++) {
col=g_ptr_array_index(table->columns,j);
fprintf(stdout,delimiter);
- fprintf(stdout,"%s",col->name);
+ fprintf(stdout, "%s", sanitize_name(col->name,sanitize));
}
fprintf(stdout,"\n");
}