summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2016-12-06 21:09:23 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2016-12-06 21:09:23 +0000
commite33376f221ef1e77fe9de423c5f06b4b2f0f63a3 (patch)
treed602134cb75ed352e1e14ea079680fcae90431e3
parent1af33ca77b88beb6e037131b12065035e932e07d (diff)
Consistent use of menuq_add for ssh menu.
-rw-r--r--app/cwm/kbfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c
index b198efe6e..0a3d08a0b 100644
--- a/app/cwm/kbfunc.c
+++ b/app/cwm/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);