mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 12:27:09 +08:00
Migrate to g_memdup2 (#288)
With fakeglib and older versions of GLib, fall back to g_memdup with a #define inside mdbprivate.h. Fixes #287
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
|
||||
#include "mdbtools.h"
|
||||
#include "mdbver.h"
|
||||
#include "mdbprivate.h"
|
||||
|
||||
int
|
||||
main(int argc, char **argv)
|
||||
@@ -58,7 +57,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
if (!(mdb = mdb_open(argv[1], MDB_NOFLAGS))) {
|
||||
fprintf(stderr,_("Error: unable to open file %s\n"), argv[1]);
|
||||
fprintf(stderr,"Error: unable to open file %s\n", argv[1]);
|
||||
exit(1);
|
||||
}
|
||||
switch(mdb->f->jet_version) {
|
||||
@@ -84,7 +83,7 @@ main(int argc, char **argv)
|
||||
printf("ACE17\n");
|
||||
break;
|
||||
default:
|
||||
printf(_("unknown database version\n"));
|
||||
printf("unknown database version\n");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user