From 284e170321e2cf8b9797f00493846b57f8f77ea0 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 5 Jul 2012 19:47:30 -0400 Subject: [PATCH] sizeof -> strlen --- termite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/termite.c b/termite.c index 84411cb..65a46c4 100644 --- a/termite.c +++ b/termite.c @@ -93,12 +93,12 @@ static void update_selection(VteTerminal *vte, select_info *select) { #define CSI "\x1b[" static void start_selection(VteTerminal *vte, select_info *select) { - vte_terminal_feed(vte, CSI "s", sizeof CSI "s"); // save cursor position + vte_terminal_feed(vte, CSI "s", strlen(CSI "s")); // save cursor position select->mode = SELECT_ON; } static void end_selection(VteTerminal *vte, select_info *select) { - vte_terminal_feed(vte, CSI "u", sizeof CSI "u"); // restore cursor position + vte_terminal_feed(vte, CSI "u", strlen(CSI "u")); // restore cursor position select->mode = SELECT_OFF; }