diff options
-rw-r--r-- | gatchat/gatserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |