[FL-1404] iButton long names fix (#528)

* ibutton: long names partial fix\
* ibutton: limit max filename length to 22 chars
* elwrapping long names to a new line
* Proper m-string size usage

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
its your bedtime
2021-06-22 12:56:57 +03:00
committed by GitHub
parent 8605f53c28
commit 6ec9c6cc49
10 changed files with 44 additions and 20 deletions

View File

@@ -3,14 +3,14 @@
size_t args_get_first_word_length(string_t args) {
size_t ws = string_search_char(args, ' ');
if(ws == STRING_FAILURE) {
ws = strlen(string_get_cstr(args));
ws = string_size(args);
}
return ws;
}
size_t args_length(string_t args) {
return strlen(string_get_cstr(args));
return string_size(args);
}
bool args_read_string_and_trim(string_t args, string_t word) {