Showing the changes to interface/src/DataServerClient.cpp (1 of 1 file). Show all
Unified · Split
| @@ -39,6 +39,9 @@ void DataServerClient::putValueForKey(const QString& key, const char* value) { · 38 unmodified lines | |||
| 39 | numPacketBytes += clientString.toLocal8Bit().size(); | 39 | numPacketBytes += clientString.toLocal8Bit().size(); |
| 40 | putPacket[numPacketBytes++] = '\0'; | 40 | putPacket[numPacketBytes++] = '\0'; |
| 41 | 41 | ||
| 42 | // pack a 1 to designate that we are putting a single value | ||
| 43 | putPacket[numPacketBytes++] = 1; | ||
| 44 | |||
| 42 | // pack the key, null terminated | 45 | // pack the key, null terminated |
| 43 | strcpy((char*) putPacket + numPacketBytes, key.toLocal8Bit().constData()); | 46 | strcpy((char*) putPacket + numPacketBytes, key.toLocal8Bit().constData()); |
| 44 | numPacketBytes += key.size(); | 47 | numPacketBytes += key.size(); |