diff --git a/src/ox/std/trace.hpp b/src/ox/std/trace.hpp index 79f8e36b1..9fc709575 100644 --- a/src/ox/std/trace.hpp +++ b/src/ox/std/trace.hpp @@ -95,14 +95,14 @@ constexpr Error model(T *io, ox::CommonPtrWith auto *obj) noexc struct InitTraceMsg { static constexpr auto TypeName = "net.drinkingtea.ox.trace.InitTraceMsg"; - static constexpr auto TypeVersion = 1; - const char *appName = ""; + static constexpr auto TypeVersion = 2; + ox::BasicString<128> appName; }; template constexpr Error model(T *io, ox::CommonPtrWith auto *obj) noexcept { oxReturnError(io->template setTypeInfo()); - oxReturnError(io->fieldCString("appName", &obj->appName)); + oxReturnError(io->field("appName", &obj->appName)); return {}; }