mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Consistent use of menuq_add for ssh menu.
This commit is contained in:
parent
2ae4797297
commit
89e4e7fb14
2
kbfunc.c
2
kbfunc.c
@ -520,7 +520,7 @@ kbfunc_menu_ssh(void *ctx, union arg *arg, enum xev xev)
|
|||||||
if (p - buf + 1 > sizeof(hostbuf))
|
if (p - buf + 1 > sizeof(hostbuf))
|
||||||
continue;
|
continue;
|
||||||
(void)strlcpy(hostbuf, buf, p - buf + 1);
|
(void)strlcpy(hostbuf, buf, p - buf + 1);
|
||||||
menuq_add(&menuq, NULL, hostbuf);
|
menuq_add(&menuq, NULL, "%s", hostbuf);
|
||||||
}
|
}
|
||||||
free(lbuf);
|
free(lbuf);
|
||||||
(void)fclose(fp);
|
(void)fclose(fp);
|
||||||
|
Loading…
Reference in New Issue
Block a user