Skip to content

Commit cfde9ff

Browse files
committed
in_serial: read() usage fix
Signed-off-by: Takeshi HASEGAWA <hasegaw@gmail.com>
1 parent 50d5971 commit cfde9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/in_serial/in_serial.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ int in_serial_collect(struct flb_config *config, void *in_context)
121121
char line[2024];
122122
struct flb_in_serial_config *ctx = in_context;
123123

124-
bytes = read(ctx->fd, line, sizeof(line) - 1);
124+
bytes = read(ctx->fd, &line, sizeof(line) - 1);
125125
if (bytes == -1) {
126126
if (errno == -EPIPE) {
127127
return -1;

0 commit comments

Comments
 (0)