From 2fc53c1faac04132e301656b4088c3d7d630e6ff Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 22 Jan 2018 11:48:24 -0800 Subject: [PATCH] fdopen() for writing and reading. Since that's what we're doing. Doesn't seem like this affected anything, though. Change-Id: I0fa915fe2a311d4b3e6e72a9a9a19f52018258c3 --- src/jtag/drivers/remote_bitbang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/remote_bitbang.c b/src/jtag/drivers/remote_bitbang.c index 7517b68db..9812a7ee2 100644 --- a/src/jtag/drivers/remote_bitbang.c +++ b/src/jtag/drivers/remote_bitbang.c @@ -288,7 +288,7 @@ static int remote_bitbang_init(void) if (remote_bitbang_fd < 0) return remote_bitbang_fd; - remote_bitbang_file = fdopen(remote_bitbang_fd, "w"); + remote_bitbang_file = fdopen(remote_bitbang_fd, "w+"); if (remote_bitbang_file == NULL) { LOG_ERROR("fdopen: failed to open write stream"); close(remote_bitbang_fd);