From 0c0fdaa357ef7f53c61d9c854008edba70864ce7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 25 May 2016 04:47:02 -0700 Subject: [PATCH] ndisasm: don't use nasm_open_read() Don't use nasm_open_read() in ndisasm.c, as we don't currently use nasm_error() in the disassembler. Signed-off-by: H. Peter Anvin --- ndisasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndisasm.c b/ndisasm.c index 9356270b..d90b5c3b 100644 --- a/ndisasm.c +++ b/ndisasm.c @@ -271,7 +271,7 @@ int main(int argc, char **argv) } if (strcmp(filename, "-")) { - fp = nasm_open_read(filename, NF_BINARY); + fp = fopen(filename, "rb"); if (!fp) { fprintf(stderr, "%s: unable to open `%s': %s\n", pname, filename, strerror(errno));