]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
off by one
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 27 Aug 2010 18:08:33 +0000 (13:08 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 27 Aug 2010 18:08:33 +0000 (13:08 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 775451db5413cced672920d1a60198b2dba243b3..4acc83cc0383db4ec9b6108f8e3eec5c88d7bb2e 100644 (file)
@@ -965,9 +965,9 @@ static int sofia_presence_resub_callback(void *pArg, int argc, char **argv, char
                        switch_url_decode(to_buf);
                        to_user = to_buf;
                }
-               if (argc > 10 && !zstr(argv[9]) && !zstr(argv[10])) {
-                       status = argv[9];
-                       rpid = argv[10];
+               if (argc > 10 && !zstr(argv[10]) && !zstr(argv[11])) {
+                       status = argv[10];
+                       rpid = argv[11];
                }
        }