Fix progzone loader
authorMark Spencer <markster@digium.com>
Tue, 30 Mar 2004 21:23:16 +0000 (21:23 +0000)
committerMark Spencer <markster@digium.com>
Tue, 30 Mar 2004 21:23:16 +0000 (21:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2584 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index a233657..17fab8a 100755 (executable)
@@ -7541,6 +7541,8 @@ static int setup_zap(void)
                        strncpy(context, v->value, sizeof(context)-1);
                } else if (!strcasecmp(v->name, "language")) {
                        strncpy(language, v->value, sizeof(language)-1);
+               } else if (!strcasecmp(v->name, "progzone")) {
+                       strncpy(progzone, v->value, sizeof(progzone)-1);
                } else if (!strcasecmp(v->name, "musiconhold")) {
                        strncpy(musicclass, v->value, sizeof(musicclass)-1);
                } else if (!strcasecmp(v->name, "stripmsd")) {
@@ -8096,7 +8098,7 @@ static int reload_zt(void)
                } else if (!strcasecmp(v->name, "language")) {
                        strncpy(language, v->value, sizeof(language)-1);
                } else if (!strcasecmp(v->name, "progzone")) {
-                       strncpy(progzone, v->value, sizeov(progzone) - 1);
+                       strncpy(progzone, v->value, sizeof(progzone) - 1);
                } else if (!strcasecmp(v->name, "musiconhold")) {
                        strncpy(musicclass, v->value, sizeof(musicclass)-1);
                } else if (!strcasecmp(v->name, "stripmsd")) {