Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix CID 700722: Allocation too small for string (Coverity) in AudioOu…
…tputPulseAudio::ChooseHost()
  • Loading branch information
stuartm committed May 19, 2012
1 parent 95e6182 commit 389ba60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmyth/audio/audiooutputpulse.cpp
Expand Up @@ -482,7 +482,7 @@ char *AudioOutputPulseAudio::ChooseHost(void)

if ( !(!host || *host == 0 || strcmp(host,"default") == 0))
{
if ((pulse_host = new char[strlen(host)]))
if ((pulse_host = new char[strlen(host) + 1]))
strcpy(pulse_host, host);
else
VBERROR(fn_log_tag +
Expand Down

0 comments on commit 389ba60

Please sign in to comment.