diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-02-18 14:09:23 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-02-18 14:09:23 +0000 |
| commit | 9f9ffa94348905509083904f5d542481875b1b25 (patch) | |
| tree | 2538cff085c07847765a6dca70093f1a2f59d130 /terminal.c | |
| parent | changelog: --server=FD failing on FreeBSD (diff) | |
term: set_app_id(): app_id may be NULL, in which case we can't do strlen()
Closes #1963
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 2 |
1 files changed, 1 insertions, 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 |
