From afec6e365e60d0e38f02bedd9fedacd4ee3001af Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Tue, 31 Dec 2013 13:38:37 +0200 Subject: [PATCH] tools/obexctl: Removes leading and trailing whitespace from commands Leading and trailing whitespace shall be ignored --- tools/obexctl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/obexctl.c b/tools/obexctl.c index 0491b514d..2e3829843 100644 --- a/tools/obexctl.c +++ b/tools/obexctl.c @@ -1925,6 +1925,7 @@ static void rl_handler(char *input) if (!strlen(input)) goto done; + g_strstrip(input); add_history(input); argv = g_strsplit(input, " ", -1); -- 2.47.3