mrp: examples: mrp_client: mrpd_helper, bugfix in parse_state() function
authorAndrew Elder <aelder@audioscience.com>
Fri, 31 May 2013 15:10:53 +0000 (11:10 -0400)
committerAndrew Elder <aelder@audioscience.com>
Thu, 6 Jun 2013 16:09:31 +0000 (12:09 -0400)
examples/mrp_client/mrpdhelper.c

index 0c32774..9a26ca7 100755 (executable)
@@ -108,9 +108,9 @@ static int parse_state(char *sz, struct mrpdhelper_notify *n)
 
        if (strncmp(sz, "IN", 2) == 0) {
                n->state = mrpdhelper_state_in;
-       } else if (strncmp(sz, "LV", 3) == 0) {
+       } else if (strncmp(sz, "LV", 2) == 0) {
                n->state = mrpdhelper_state_leave;
-       } else if (strncmp(sz, "MT", 3) == 0) {
+       } else if (strncmp(sz, "MT", 2) == 0) {
                n->state = mrpdhelper_state_empty;
        } else {
                return -1;