From 6ac002576750a8a1f1414f655ed255befcab9e33 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 12 Apr 2010 22:33:04 -0500 Subject: [PATCH] Fix: busy loop in atserver --- gatchat/gatserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index b5187496..06a6a93a 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -602,7 +602,7 @@ static unsigned int parse_basic_command(GAtServer *server, char *buf) * semicolon character (IA5 3/11) or the end of the * command line is the part of the call. */ - while (buf[i] != '\0' || buf[i] != ';') + while (buf[i] != '\0' && buf[i] != ';') i += 1; goto done;