mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-27 06:46:44 -04:00
term: set_app_id(): app_id may be NULL, in which case we can't do strlen()
Closes #1963
This commit is contained in:
parent
ba5f4abdd4
commit
9f9ffa9434
2 changed files with 4 additions and 1 deletions
|
|
@ -3620,7 +3620,7 @@ term_set_app_id(struct terminal *term, const char *app_id)
|
|||
term->app_id = NULL;
|
||||
}
|
||||
|
||||
const size_t length = strlen(app_id);
|
||||
const size_t length = app_id != NULL ? strlen(app_id) : 0;
|
||||
if (length > 2048) {
|
||||
/*
|
||||
* Not sure if there's a limit in the protocol, or the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue