Fix binary outout

Closes issue #44
This commit is contained in:
tyzhaoqi 2014-07-24 08:10:49 +02:00 committed by Nirgal Vourgère
parent a89baeacf5
commit 9ab40e83e6

View File

@ -932,7 +932,7 @@ char *mdb_col_to_string(MdbHandle *mdb, void *buf, int start, int datatype, int
text = g_strdup("");
} else {
text = g_malloc(size);
memcpy((char*)buf+start, text, size);
memcpy(text, (char*)buf+start, size);
}
break;
case MDB_TEXT: