Allow extraction of Object LiBraries too.

Eliminate terminating 0 byte in macro buffers.
This commit is contained in:
Olaf Seibert
2015-05-24 17:37:08 +02:00
parent da068e07c8
commit bbaf56206e
4 changed files with 30 additions and 33 deletions

View File

@@ -199,7 +199,8 @@ int main(
usage("-m must be followed by a macro library file name\n");
}
arg++;
mlbs[nr_mlbs] = mlb_open(argv[arg]);
int allow_olb = strcmp(argv[argc-1], "-x") == 0;
mlbs[nr_mlbs] = mlb_open(argv[arg], allow_olb);
if (mlbs[nr_mlbs] == NULL) {
fprintf(stderr, "Unable to register macro library %s\n", argv[arg]);
exit(EXIT_FAILURE);