!167 解决pipe可以写入1024数据问题

Merge pull request !167 from hw_llm/master
This commit is contained in:
openharmony_ci
2024-02-20 02:35:25 +00:00
committed by Gitee
+1 -1
View File
@@ -144,7 +144,7 @@ struct pipe_dev_s *pipecommon_allocdev(size_t bufsize, const char *name)
* should not have priority inheritance enabled.
*/
dev->d_bufsize = bufsize + 1; /* +1 to compensate the full indicator */
dev->d_bufsize = bufsize;
}
return dev;