send an empty key when making a UUID request

This commit is contained in:
Stephen Birarda 2013-10-08 12:22:02 -07:00
parent 85edb93710
commit ae59ce22b7
2 changed files with 7 additions and 3 deletions

View file

@ -78,8 +78,12 @@ void DataServerClient::getValueForKeyAndUserString(const char* key, QString& use
// pack the key, null terminated
strcpy((char*) getPacket + numPacketBytes, key);
numPacketBytes += strlen(key);
getPacket[numPacketBytes++] = '\0';
int numKeyBytes = strlen(key);
if (numKeyBytes > 0) {
numPacketBytes += numKeyBytes;
getPacket[numPacketBytes++] = '\0';
}
// add the getPacket to our vector of uncofirmed packets, will be deleted once we get a response from the nameserver
_unmatchedPackets.insert(std::pair<unsigned char*, int>(getPacket, numPacketBytes));

View file

@ -32,7 +32,7 @@ private:
namespace DataServerKey {
const char FaceMeshURL[] = "mesh";
const char UUID[] = "uuid";
const char UUID[] = "";
}
#endif /* defined(__hifi__DataServerClient__) */