Fixed stats reporting corrupt stream name under certain conditions.

This commit is contained in:
Thulinma 2016-05-18 01:01:08 +02:00
parent e14274c89d
commit b23a811849

View file

@ -677,6 +677,9 @@ namespace IPC {
name[splitChar] = '+';
}
memcpy(data + 48, name.c_str(), std::min((int)name.size(), 100));
if (name.size() < 100){
data[48+name.size()] = 0;
}
}
///\brief Gets the name of the stream this user is viewing