Pārlūkot izejas kodu

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 pirms 3 gadiem
vecāks
revīzija
633f138b6b
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      include/gp/containers/buffer.hpp

+ 1
- 1
include/gp/containers/buffer.hpp Parādīt failu

@ -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:

Notiek ielāde…
Atcelt
Saglabāt