Allow longer toolsname on wide screens (#6805)

This commit is contained in:
3djc
2019-09-18 17:55:51 +02:00
committed by Bertrand Songis
parent a7bec62dcf
commit c60d3858d2
4 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -1150,11 +1150,11 @@ bool readToolName(char * toolName, const char * filename)
return false;
uint8_t len = end - start;
if (len > TOOL_NAME_MAXLEN)
if (len > RADIO_TOOL_NAME_MAXLEN)
return false;
strncpy(toolName, start, len);
memclear(toolName + len, TOOL_NAME_MAXLEN + 1 - len);
memclear(toolName + len, RADIO_TOOL_NAME_MAXLEN + 1 - len);
return true;
}