Skip to content

Commit

Permalink
Merge pull request xbmc#2888 from popcornmix/version_overflow
Browse files Browse the repository at this point in the history
[rbp] Avoid overflow in version string
  • Loading branch information
popcornmix committed Jun 18, 2013
2 parents 0faa3d2 + 7abe836 commit 6aa6247
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xbmc/linux/RBP.cpp
Expand Up @@ -55,9 +55,10 @@ bool CRBP::Initialize()

void CRBP::LogFirmwareVerison()
{
char response[80];
char response[160];
m_DllBcmHost->vc_gencmd(response, sizeof response, "version");
CLog::Log(LOGNOTICE, "Raspberry PI firmware version: %s\n", response);
response[sizeof(response) - 1] = '\0';
CLog::Log(LOGNOTICE, "Raspberry PI firmware version: %s", response);
}

void CRBP::Deinitialize()
Expand Down

0 comments on commit 6aa6247

Please sign in to comment.