diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-03 21:21:55 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-03 21:21:55 +0300 |
commit | 9ae82271f8dc01e32df1c76cfec64771bc5ee6d0 (patch) | |
tree | 0b47e7e2b8a68adaf658d5044bf1efa5b2923b94 /protocols/Discord | |
parent | 09a49cfe0925494f7fd516657df7fe327c7370dd (diff) |
fixes #4095 completely, AMDG
Diffstat (limited to 'protocols/Discord')
-rw-r--r-- | protocols/Discord/src/guilds.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/protocols/Discord/src/guilds.cpp b/protocols/Discord/src/guilds.cpp index 32bdd67cc8..fdaab2cefe 100644 --- a/protocols/Discord/src/guilds.cpp +++ b/protocols/Discord/src/guilds.cpp @@ -463,6 +463,7 @@ void CDiscordGuild::LoadFromFile() int fSize = ::filelength(fileNo);
ptrA json((char*)mir_alloc(fSize + 1));
read(fileNo, json, fSize);
+ json[fSize] = 0;
close(fileNo);
JSONNode cached = JSONNode::parse(json);
|