1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-18 18:56:35 +01:00

increase line_info msg buffer size so won't cut off long log lines

This commit is contained in:
Jfreegman
2014-09-22 13:49:09 -04:00
parent dc3b2e04ab
commit c07c0028bb
3 changed files with 4 additions and 5 deletions

View File

@@ -29,6 +29,7 @@
#define MAX_HISTORY 100000
#define MIN_HISTORY 40
#define MAX_LINE_INFO_QUEUE 512
#define MAX_LINE_INFO_MSG_SIZE MAX_STR_SIZE + TOXIC_MAX_NAME_LENGTH + 32 /* needs extra room for log loading */
enum {
SYS_MSG,
@@ -47,7 +48,7 @@ struct line_info {
char timestr[TIME_STR_SIZE];
char name1[TOXIC_MAX_NAME_LENGTH];
char name2[TOXIC_MAX_NAME_LENGTH];
char msg[TOX_MAX_MESSAGE_LENGTH];
char msg[MAX_LINE_INFO_MSG_SIZE];
uint64_t timestamp;
uint8_t type;
uint8_t bold;