fixed - string wasn't null terminated when logging 'set menu language'
[deb_libcec.git] / src / lib / implementations / CECCommandHandler.cpp
index 7031f094f81fc2dc2379bfd347de5e0ab9a3948c..e4a7995173a1868cf5728c91bb3382d09733c852 100644 (file)
@@ -1006,7 +1006,7 @@ bool CCECCommandHandler::TransmitPhysicalAddress(const cec_logical_address iInit
   return Transmit(command, false, bIsReply);
 }
 
-bool CCECCommandHandler::TransmitSetMenuLanguage(const cec_logical_address iInitiator, const char lang[3], bool bIsReply)
+bool CCECCommandHandler::TransmitSetMenuLanguage(const cec_logical_address iInitiator, const char lang[4], bool bIsReply)
 {
   cec_command command;
   command.Format(command, iInitiator, CECDEVICE_BROADCAST, CEC_OPCODE_SET_MENU_LANGUAGE);