aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2016-12-06 21:09:22 +0000
committerokan2016-12-06 21:09:22 +0000
commitbeda23742b6a37852c4ede98d865a36c6bb953f1 (patch)
tree1e43e79b5d57a598f52ce79e432719abb5ec9bdf /kbfunc.c
parent68609ac71d758abee88cb0c729ce84cb6e4c13f6 (diff)
downloadcwm-beda23742b6a37852c4ede98d865a36c6bb953f1.tar.gz
Consistent use of menuq_add for ssh menu.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbfunc.c b/kbfunc.c
index b198efe..0a3d08a 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: kbfunc.c,v 1.140 2016/12/01 20:28:19 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.141 2016/12/06 21:09:22 okan Exp $
*/
#include <sys/types.h>
@@ -520,7 +520,7 @@ kbfunc_menu_ssh(void *ctx, union arg *arg, enum xev xev)
if (p - buf + 1 > sizeof(hostbuf))
continue;
(void)strlcpy(hostbuf, buf, p - buf + 1);
- menuq_add(&menuq, NULL, hostbuf);
+ menuq_add(&menuq, NULL, "%s", hostbuf);
}
free(lbuf);
(void)fclose(fp);