From e9f002e9c555400fe02c1b03ff84701a0a8395cd Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 22 Jan 2013 22:23:40 -0500 Subject: [PATCH] Fixed typo in core causing CS:GO build break. --- core/UserMessagePBHelpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/UserMessagePBHelpers.h b/core/UserMessagePBHelpers.h index 7ab47c30..0863348a 100644 --- a/core/UserMessagePBHelpers.h +++ b/core/UserMessagePBHelpers.h @@ -516,7 +516,7 @@ public: CHECK_FIELD_NOT_REPEATED(); std::string scratch; - strncopy(out, msg->GetReflection()->GetStringReference(*msg, field, &buffer).c_str(), size); + strncopy(out, msg->GetReflection()->GetStringReference(*msg, field, &scratch).c_str(), size); return true; }