From 9769c55f17ade6405725e24a83d3659095b9b5fc Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 16 Jul 2014 21:00:10 -0700 Subject: [PATCH] client: client brand fix --- client/client_state.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client_state.cpp b/client/client_state.cpp index c06aaf807d..c56868227c 100644 --- a/client/client_state.cpp +++ b/client/client_state.cpp @@ -114,6 +114,7 @@ CLIENT_STATE::CLIENT_STATE() core_client_version.prerelease = false; #endif strcpy(language, ""); + strcpy(client_brand, ""); exit_after_app_start_secs = 0; app_started = 0; exit_before_upload = false; @@ -408,6 +409,7 @@ int CLIENT_STATE::init() { FILE* f = fopen(CLIENT_BRAND_FILENAME, "r"); if (f) { fgets(client_brand, sizeof(client_brand), f); + strip_whitespace(client_brand); msg_printf(NULL, MSG_INFO, "Client brand: %s", client_brand); fclose(f); }