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:
Evan Miller
2021-04-05 09:04:29 -04:00
committed by GitHub
parent afd154f619
commit fe0175aa63
8 changed files with 19 additions and 16 deletions

View File

@@ -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;
}