jaraco  committed a7dbd9d

Fixed two bugs with the MessageWrite message - one where the 'join' wasn't being used properly, and another where the wrong value was being used for the message length (the null-termination character was not included in the message length).

  • Participants
  • Parent commits bd3a8e7

Comments (0)

Files changed (1)

File jaraco/nxt/

 	def Zmessage(self):
-		return ''.join(self.message, '\x00')
+		return ''.join([self.message, '\x00'])
 	def message_len(self):
-		return len(self.message)
+		"message size must include null byte"
+		return len(self.Zmessage)
 	def validate_settings(self):
 		assert 0 <= < 10, 'invalid box number %(box_number)s' % self.__dict__