Skip to content

Commit

Permalink
gpuserv logger missed null-character when pipe was read
Browse files Browse the repository at this point in the history
  • Loading branch information
kaigai committed Apr 2, 2024
1 parent c60d8a1 commit 3ba608d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpu_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ gpuservLoggerDispatch(void)
break;
}
}
gpuserv_logger_buffer.data[gpuserv_logger_buffer.len] = '\0';

for (line = gpuserv_logger_buffer.data;
(tail = strchr(line, '\n')) != NULL;
Expand Down

0 comments on commit 3ba608d

Please sign in to comment.