浏览代码

Remove the null terminator of string buffers

This applies in both constexpr buffers and non constexpr contexts, this was detected because Elixir would consider logs as binaries
master
Ludovic 'Archivist' Lagouardette 3 年前
父节点
当前提交
633f138b6b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      include/gp/containers/buffer.hpp

+ 1
- 1
include/gp/containers/buffer.hpp 查看文件

@ -22,7 +22,7 @@ namespace gp{
static constexpr size_t local_strlen(const char* str) {
auto ptr = str;
do{}while(*(ptr++));
return ptr-str;
return ptr-stro">-1;
}
public:

正在加载...
取消
保存