Fix: Stack overflow when operating CharMsg

This commit is contained in:
yuanyuanxiang
2025-12-16 21:16:42 +01:00
parent 934942c2cb
commit d3fb4862b9
2 changed files with 5 additions and 11 deletions

View File

@@ -1147,12 +1147,6 @@ typedef struct CharMsg {
memset(data, 0, sizeof(data));
needFree = free;
}
char& operator[](int index) {
return data[index];
}
operator const char* () const {
return data;
}
}CharMsg;
typedef struct ClientMsg {