From b54460a097fdcc1c86ddc42fe1588470fbeff866 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 26 Aug 2014 11:02:52 +0200 Subject: Fix type confusion. --- server/src/admin_rc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/admin_rc.cc b/server/src/admin_rc.cc index bf790ae..47fb7ad 100644 --- a/server/src/admin_rc.cc +++ b/server/src/admin_rc.cc @@ -28,7 +28,7 @@ #include "admin_rc.h" static int faviconsize = 4287; -static const char favicon[] = { +static const unsigned char favicon[] = { 0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x20, 0x20, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0xa8, 0x10, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x28, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00, 0x01, 0x00, @@ -420,7 +420,7 @@ static const char footer[] = std::string admin_rc(std::string key) { std::string val; - if(key == "favicon") val.append(favicon, faviconsize); + if(key == "favicon") val.append((const char*)favicon, faviconsize); if(key == "header1") val = header1; if(key == "header2") val = header2; if(key == "footer") val = footer; -- cgit v1.2.3