k i fixed that but it didnt fix the problem though
k i fixed that but it didnt fix the problem though
key.data is a pointer to a char, and you don't allocate any space for it (as far as I can see) Since this is C++ you might as well stick with std::strings (especially since you're using them elsewhere)
"Think not but that I know these things; or think
I know them not: not therefore am I short
Of knowing what I ought."
-John Milton, Paradise Regained (1671)
"Work hard and it might happen."
-XSquared