diff options
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);
|