mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-09 10:06:20 -05:00
server: bug: move forward 2 bytes, not whatever the client sent
This commit is contained in:
parent
39146fac5c
commit
2a58fc27b7
1 changed files with 1 additions and 1 deletions
2
server.c
2
server.c
|
|
@ -182,7 +182,7 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
|
|||
LOG_DBG("CWD = %.*s", cwd_len, cwd);
|
||||
|
||||
CHECK_BUF(sizeof(uint16_t));
|
||||
uint16_t term_env_len = *(uint16_t *)p; p += term_env_len;
|
||||
uint16_t term_env_len = *(uint16_t *)p; p += sizeof(term_env_len);
|
||||
|
||||
CHECK_BUF(term_env_len);
|
||||
const char *term_env = (const char *)p; p += strlen(term_env) + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue